A set of Java applications each of which an interactive demonstration application about colors in digital multimedias.
Developed in 2009 to 2010
Copyright (C) 2010 - Andrew Kwok-Fai Lui
The Open University of Hong Kong
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/.
There are 5 interactive demo applications included in this package
- Color RGB Space Demo (
faifai.color.ColorSpaceDemo
) - Color HSB Space Demo (
faifai.color.ColorSpaceHSBDemo
) - White Plane Reflection Demo (
faifai.color.ColorReflectionDemo2D
) - Color Plane Reflection Demo (
faifai.color.ColorPlaneReflectionDemo2D
) - Mix Light Reflection Demo (
faifai.color.ColorMixLightDemo2D
)
- Java JRE 1.8 or above
A launcher application ApplicationLauncher.class
is provided for running each of the 5 applications.
- Download the repository to a folder, assuming that it is
/app/DMColorDemo
. The Java classes are found in thebin
folder. - Execute
ApplicationLauncher.class
insider the folder
cd /app/DMColorDemo
java -cp "./bin" ApplicationLauncher
Alternatively, each of the 5 applications can be executed from their main classes (as in the above list).
cd /app/DMAudioDemo
java -cp "./bin" faifai.color.ColorMixLightDemo2D
Class: faifai.color.ColorSpaceDemo
- Interactive color viewing of RGB values
- Named colors and their RGB values
Class: faifai.color.ColorSpaceHSBDemo
- Interactive color viewing of HSB and RGB values
- Named colors and their HSB values
Class: faifai.color.ColorReflectionDemo2D
)
- Light shining on a white plane (perfect reflector)
- Interactive adjust the color of the light source
Class: faifai.color.ColorPlaneReflectionDemo2D
)
- Light shining on a plane of different colors
- Interactive adjust the color of the light source and the color of the reflecting plane
Class: faifai.color.ColorMixLightDemo2D
- Two light sources shining on a white plane (perfect reflector), mixing of two colors.
- Interactive adjust the colors of the two light source