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)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.