Name

colormap[i] — red, green, and blue component of colormap entry

Synopsis

$image->set('colormap[i]'=>'black')
($red, $green, $blue) = $image->Get('colormap[i]')

This attribute sets or returns the color name (e.g., red) or hex value (e.g., #ccc) at position i.

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.