01-21-2014 Color Lab

posted Jan 22, 2014, 7:27 AM by Samuel Konstantinovich   [ updated Jan 22, 2014, 7:27 AM ]
You are making a image manipulation program that has the following buttons:
1.loadImage - loads a predetermined image file
2.grayscale - after loading the image, converts it into a black&white picture
3.replace - replaces a startColor with an endColor, these are variables from the color choosers.

There are two color choosers:
 startColor
 endColor
To make a color chooser, add an input , then change the 'type' to color. This will allow you to click any colors you want. 

Finally:
4. Invert - inverts dark/light colors.

Every color's 1's digit should be pivoted around the 5. 
16 -> 14
22 -> 28
108-> 102
14-> 16
Basically if the 1's digit is x, it becomes 10-x

When a number ends in 0, that is a special case, and you should change it to end in 9.9

Here is an example of what EVERYONE should have:
Notice the car dark/light was inverted, and the reds were replaced with greens. 
I could replace any color with any other color if I wish by changing the start/end colors on the color pickers.
Comments