in reply to Perl/Tk - query about rdg values of a colour

Tk::Widget
$widget->rgb(color)

Returns a list containing three decimal values, which are the red, green, and blue intensities that correspond to color in the window given by $widget. Color may be specified in any of the forms acceptable for a color option.

  • Comment on Re: Perl/Tk - query about rdg values of a colour