OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cgmo-webcgm message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]