mdog has asked for the wisdom of the Perl Monks concerning the following question:
and then turn that into an RGB colorset so I can do a look up of the color via:colorClosest $image->colorClosest(red,green,blue) object method This returns the index of the color closest in the color table to the +red green and blue components specified. If no colors have yet been a +llocated, then this call returns -1. Example: $apricot = $myImage->colorClosest(255,200,180);
But for the example I gave for red above, it returns the exact same RGB numbers.rgb $image->rgb(colorIndex) object method This returns a list containing the red, green and blue components of t +he specified color index. Example: @RGB = $myImage->rgb($peachy);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RGB values and color name
by tcf22 (Priest) on Aug 25, 2003 at 18:32 UTC | |
by sweetblood (Prior) on Aug 25, 2003 at 18:36 UTC | |
|
Re: RGB values and color name
by Mr. Muskrat (Canon) on Aug 25, 2003 at 18:35 UTC | |
by mdog (Pilgrim) on Aug 25, 2003 at 20:23 UTC |