← Prev in month ← Prev in thread

Relative Intensity

From
Gorrest Darpenter
Date
2004-07-13T14:35:43+00:00
ID
Thread
Relative Intensity
All,

This is what we do to control the intensity of colors:

	new_color.red    = 0xffff - intensity*(0xffff - old_color.red);
	new_color.green = 0xffff - intensity*(0xffff - old_color.green);
	new_color.blue   = 0xffff - intensity*(0xffff - old_color.blue);

Where intensity has a value from 0 to 1 and the colors range from 0 to 0xffff.

What about adopting this as the color intensity method?

Regards
Forrest
← Prev in month ← Prev in thread