Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I expect to get three decimal numbers between 0 and 255 as stated on page 293. What I get are three numbers much larger than anticipated. for purple3, I get 32125, 9766, 52685. WHY? I'd like to use the results to reset some rgb sliders I use to display specific colors. HELP. I tried dividing the large numbers by 256 and that gets me close and even correct once in a while, but it isn't the right solution. Sorry for the lengthy dialog.$rb_value = "purple3" ($red, $green, $blue) = $widget->rgb($rb_value);
2001-03-27 Edit by Corion : Added CODE tags. And it's a monolog(ue), not a dialog(ue).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What's up with the RGB method?
by baku (Scribe) on Mar 28, 2001 at 00:44 UTC | |
by Anonymous Monk on Mar 28, 2001 at 02:30 UTC |