merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; use strict "vars"; my (@colours, $col_item, $red, $green, $blue, $mw); $mw = MainWindow->new; @colours = qw(black white red green blue); foreach $col_item (@colours) { ($red, $green, $blue) = $mw->rgb($col_item); print "\n colour <$col_item> red <$red> green <$green> blue <$blue +>\n"; $red = int(sqrt($red)); $green =int(sqrt($green)); $blue = int(sqrt($blue)); print "sqrt colour <$col_item> red <$red> green <$green> blue <$blue>\ +n"; } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/Tk - query about rdg values of a colour
by lamprecht (Friar) on Sep 04, 2009 at 07:41 UTC | |
|
Re: Perl/Tk - query about rdg values of a colour
by Anonymous Monk on Sep 04, 2009 at 07:25 UTC | |
|
Re: Perl/Tk - query about rdg values of a colour
by Anonymous Monk on Sep 04, 2009 at 07:16 UTC |