Acme-Tango
view release on metacpan or search on metacpan
lib/Acme/Tango.pm view on Meta::CPAN
my $hex_string = Acme::Tango::drink('#00bbcc', 'apple');
=head1 METHODS
=head2 drink
Given a hex rgb colour string (like: "#aaff4f" or "44f567" or "#fab"),
returns the hex string of the shade of orange with the same I<saturation>
and I<value> values. Unless you specifically specify that Apple or Lemon
tango are what you're after, by passing C<apple> or C<lemon> as the
second argument. See:
L<https://rt.cpan.org/Ticket/Display.html?id=6730>
=head1 EXAMPLE
C<perl eg/colour_swatches.pl> should give you an HTML segment to look
at. If you're reading this page in an HTML-compatible POD reader, you
can see the results below:
=begin html
( run in 0.946 second using v1.01-cache-2.11-cpan-39bf76dae61 )