Computing: Free Pascal Programming

Programming Home   Home   Contact

Color addition and subtraction (Colors).


Description: Physics application dealing with the addition and subtraction of colors. The program generates simple exercises, where the user has to determine the resulting color on a sheet of white paper, illuminated by 2 bulbs of different color resp. the color of the light transmitted by a given color filter, illuminated by a given color bulb. Beside the colors, the user has to (optionally) enter the equation of the color addition or subtraction process. In order to learn about and understand the physics of colors, the application provides a learning mode, where the color addition and subtraction examples are displayed, solution included. Basics of the physics of light and application help text available from the application's menu bar.

Free Pascal features: Using canvas to draw lines, rectangles and ellipses. Arrays of records (classic Pascal).

Screenshots:

Physics of light: Addition of two colors
 
Physics of light: Subtraction of two colors