Convert RGB to HSV
Randall Reetz
randall at randallreetz.com
Sun Jul 5 13:44:31 EDT 2009
Just thinking... but by light mixing physics it would seem that Hue would simply be some three-matrix sum, S would be the sum of R,G, and B devided by the range for any one of them, and V just that total range minus S. Is all of this "min" and "max" just some sort of maths shortcut? Maybe this is a way of figuring the range between R,G, and B? Seems unintuitive as it obfuscates the real relationships involved. What am i missing?
-----Original Message-----
From: "Richmond Mathewson" <richmondmathewson at gmail.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: 7/5/2009 8:45 AM
Subject: Re: Convert RGB to HSV
Well, well, well . . . digging around in the Documentation I discovered
statRound (having fallen foul of 'round');
http://mathewson.110mb.com/FILEZ/COLORNAMER.rev.zip
still feeling a bit 'funny' about those negative S values . . .
>
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list