Name

QueryColor( ) — return numerical values corresponding to color name

Synopsis

$image->QueryColor(list)

The QueryColor( ) function accepts one or more color names and returns their respective red, green, and blue color values as a comma-delimited string:

($red, $green, $blue) = split /,/, $image->QueryColor('PeachPuff'));

See Appendix B for a table of valid color names.

Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.