(c) 2006-2017 Martin Krzywinski | mkweb.bcgsc.ca
TupleEncode - encoding a tuple into HSV color.

Documentation for the implementation of color encoding schemes. The Color::TupleEncode Perl module is available on CPAN).

main module

Color::TupleEncode

encoding implementations

Color::TupleEncode::2Way

Color::TupleEncode::Baran

Color::TupleEncode

example scripts

example-2way

example-3way

tuple2color

example-2way

NAME

example-2way - convert a single 3-tuple into a color using a different implementation

SYNOPSIS

  # report values, do not generate an image
  example-2way [ -tuple a,b,c ]
               [ -options {saturation=>{-power=>1,min=>0.1,max=>1}} ]
               [ -verbose ]

DESCRIPTION

Uses Color::TupleEncode to encode a 3-tuple into a color using the Color::TupleEncode::2Way encoding scheme.

OPTIONS

-tuple a,b

Optionally, pass in the 2-tuple as a CSV list using -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,

  -options {saturation=>{-power=>1,min=>0.1,max=>1}}

-verbose

Report the options used in the encoding.

SEE ALSO

Color::TupleEncode, Color::TupleEncode::Baran, Color::TupleEncode::2Way

BUGS

Please report any bugs or feature requests to bug-color-tupleencode at rt.cpan.org, or through the web interface at rt.cpan.org I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

AUTHOR

Martin Krzywinski, <martin.krzywinski at gmail.com>

(c) 2006-2017 Martin Krzywinski mkweb.bcgsc.ca