Skip to content

A set of demo applications illustrating color space, reflection, and mix of lights in digital multimedia

License

Notifications You must be signed in to change notification settings

andrewkflui/DMColorDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Demo of Colors in Digital Multimedia

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/.

Introduction

There are 5 interactive demo applications included in this package

  1. Color RGB Space Demo (faifai.color.ColorSpaceDemo)
  2. Color HSB Space Demo (faifai.color.ColorSpaceHSBDemo)
  3. White Plane Reflection Demo (faifai.color.ColorReflectionDemo2D)
  4. Color Plane Reflection Demo (faifai.color.ColorPlaneReflectionDemo2D)
  5. Mix Light Reflection Demo (faifai.color.ColorMixLightDemo2D)

Running the Applications

Pre-requisites

  1. Java JRE 1.8 or above

Running the Applications Through the Launcher

A launcher application ApplicationLauncher.class is provided for running each of the 5 applications.

  1. Download the repository to a folder, assuming that it is /app/DMColorDemo. The Java classes are found in the bin folder.
  2. Execute ApplicationLauncher.class insider the folder

cd /app/DMColorDemo

java -cp "./bin" ApplicationLauncher

Running Individual Application

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

Overview of the Applications

Color RGB Space Demo

Class: faifai.color.ColorSpaceDemo

  • Interactive color viewing of RGB values
  • Named colors and their RGB values

Screenshot 2022-10-31 at 1 50 18 AM

Color HSB Space Demo

Class: faifai.color.ColorSpaceHSBDemo

  • Interactive color viewing of HSB and RGB values
  • Named colors and their HSB values

Screenshot 2022-10-31 at 1 50 37 AM

White Plane Reflection Demo

Class: faifai.color.ColorReflectionDemo2D)

  • Light shining on a white plane (perfect reflector)
  • Interactive adjust the color of the light source

Screenshot 2022-10-31 at 1 50 50 AM

Color Plane Reflection Demo

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

Screenshot 2022-10-31 at 1 51 07 AM

Mix Light Reflection Demo

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

Screenshot 2022-10-31 at 1 51 18 AM

About

A set of demo applications illustrating color space, reflection, and mix of lights in digital multimedia

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published