We don't bite newbies here... much | |
PerlMonks |
Re: RE: hex color generatorby extremely (Priest) |
on Apr 06, 2001 at 20:09 UTC ( [id://70504]=note: print w/replies, xml ) | Need Help?? |
You want that sprintf string to be "%02x%02x%02x"
so that zeropadding is turned on and set to 2 chars width.
otherwise (255,128,9) gets you 'ff809' which may not be too
useful where a 6 char value is required. =)
--
In Section
Seekers of Perl Wisdom
|
|