Week 9: Finishing up the project

May 30, 2020


V1.Color approximation: This part of the program analyzes what colors are in the palette based on patterns within Hex. This approximation is based on odd digits only, and based on the relative difference between each digit. Each digit and the difference between digit has to be in specific ranges in order to be classified as a color. This approximation is  not precise. The color wheel is mathematically split in to 12 different ranges, including Red, Orange, Yellow, Yellow-Green, Green, Aquamarine, Cyan, Azure, Blue, Violet, Magenta, and Rose. 

 

 

 

V2: Saturation: Saturation is determined by the difference between the highest odd digit and the lowest odd digit in a hex color code. The resulting number range from 0-15, where 0 is the most unsaturated and 15 is the most saturated. and just for the ease of calculation, we will call 0-3 unsaturated, 4-7 and 8-11 normal, and 12-15 as saturated.

 

 

V3: tint and shade: tint is a color adding white, and shade is a color adding black. if you play with the hex color picker (google) you may realize that for a saturated color, in order to be 100% tinted (white) rr gg and bb component of the hex color code all has to reach ffffff at the same time. So a lower component will have to increase at a faster rate inorder to reach ffffff at the same time as other components.  Using this relationship, we know that there for a more tinted color, the three componest will be closer to each other, and their average will be higher (since they are going towards thehighest ffffff).

 

 

 

Using these two properties, we will know that any given color where all the odd digits are above 7 is very tinted. (again, 7 is because its half of 15 rounded, this is equivalent to about 50% tinted in RGB, which is a reasonable percentage to call a color pretty tinted, or almost whitewashed.)

Leave a Reply