example-3way - convert a single 3-tuple into a color
# report values, do not generate an image example-3way [ -tuple a,b,c ] [ -options=>{-saturation=>{-dmin=>0.5,dmax=>1.5}} ] [ -verbose ]
Uses Color::TupleEncode to encode a 3-tuple into a color using the default Color::TupleEncode::Baran encoding scheme.
Color::TupleEncode::Baran
-tuple a,b,c
Optionally, pass in the 3-tuple as a CSV list using -tuple.
-tuple
If this option is not used, a random tuple will be encoded.
-options HASH
Pass options to the encoder using a HASH string that can be evaled to a hash reference. For example,
HASH
eval
-options {-saturation=>{dmin=>0.5,dmax=>1.5}}
-verbose
Report the options used in the encoding.
Color::TupleEncode, Color::TupleEncode::Baran, Color::TupleEncode::2Way
Please report any bugs or feature requests to bug-color-tupleencode at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Color-TupleEncode. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-color-tupleencode at rt.cpan.org
Martin Krzywinski, <martin.krzywinski at gmail.com>
<martin.krzywinski at gmail.com>
To install Color::TupleEncode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Color::TupleEncode
CPAN shell
perl -MCPAN -e shell install Color::TupleEncode
For more information on module installation, please visit the detailed CPAN module installation guide.