Joachim Bargsten > Bio-Gonzales-0.0543 > Bio::Gonzales::Util::Common::Visual::Color::Generator

Download:
Bio-Gonzales-0.0543.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Bio-Gonzales-0.0547_01

NAME ^

Bio::Gonzales::Util::Common::Visual::Color::Generator - generate distinguishable colors in RGB format

SYNOPSIS ^

    use Bio::Gonzales::Util::Common::Visual::Color::Generator;

    my $generator = Bio::Gonzales::Util::Common::Visual::Color::Generator->new;
    my $colors = $generator->generate(30); #number of colors as argument

    for my $c (@{$colors}) {
        say "R: $c->[0], G: $c->[1], B: $c->[2]";
    }

SUBROUTINES/METHODS ^

generate($number_of_colors)

Generate array of a given number color triplets.

generate_as_string($number_of_colors)

Generate string "RRR GGG BBB" version from a given number of colors

AUTHOR ^

jw bargsten, <joachim.bargsten at wur.nl>

syntax highlighting: