You must be referring to the code over at
Re: Re: Hex color degrader.
I decided to take the 'Pepsi Challenge'™, and - not
to best you - i thought it would be benificial for the
community to post a very similar solution that used
CGI.pm's methods: (refer to said link for orginal
code)
print start_table, Tr(td(' '), th[@colors]);
for my $scale ( -5 .. +5 ) {
print Tr(td($scale/10)),
Tr(
map { td{bgcolor=>'#'.$_},$_ }
map { Dlighken($_, $scale/10) } @colors
)
;
}
print end_table;
Thanks to your existing code, it only took me about 5
minutes or so to port - however, when one considers how
much total time that i have spent learning how to massage
CGI.pm, i feel that your argument here
bears even more weight. I liken this to playing a musical
instrument - the time one spends practicing different
scales, licks, chops, etc. will, in the long run, improve
one's improv skills. But, when on the spot ... it's best to
stick with what one knows right now.
Cool code, BTW. :)
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)