4 billion years of evolution and technology ...
behold ...
... THE SQUARE!

I just spent 4 hours messing around with Google to find some code to calculate colors based on hue, saturation and luminance and the reason it took 4 hours is that the first 3 formulas were WRONG! It's amazing how bad information on something hard to verify can spread all over the internet.
HSL -- hue, saturation, luminance -- is an excellent color system for calculating brightness and darkness effects (shadows and highlights, like the simple square above) but the formula is fairly complicated -- or at least the WRONG formulas were.
/Do you wish you hadn't read this, heh?
behold ...
... THE SQUARE!


I just spent 4 hours messing around with Google to find some code to calculate colors based on hue, saturation and luminance and the reason it took 4 hours is that the first 3 formulas were WRONG! It's amazing how bad information on something hard to verify can spread all over the internet.
HSL -- hue, saturation, luminance -- is an excellent color system for calculating brightness and darkness effects (shadows and highlights, like the simple square above) but the formula is fairly complicated -- or at least the WRONG formulas were.
/Do you wish you hadn't read this, heh?
Comment