Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Color::Mix 0.02

    Download button

    No screenshots available
    Downloads: 206  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lee Dalton | More programs
    Perl Artistic License / FREE
    June 15th, 2010, 10:03 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Color::Mix description

    Generate themes from an RGB color wheel

    Color::Mix is a lightweight color scheme generator for the Perl language. Users of this module are expected to know how to use RGB hexidecimal colors.

    All the scheme methods take at the very minimum either an rgb hex code for the color you are trying to calculate or a color name from the common X11 color list. In addition to this the analogous method can take a number of arguments to gain fine grained control over the scheme generated through controlling the color range.

    The colors are calculated against an RGB color wheel internally.

    Note: This module uses Red, Green and Blue for it's primary colours which differs from the normal color theory of Red, Yellow and Blue. What this means is it uses HSV-to-RGB to calculate the schemes so should behave in the same way as the color wheel in popular image manipulation apps like Gimp & Photoshop.

    This module doesn't have any dependencies and should run on any modern-ish version of Perl 5. Tested on 5.8

    SYNOPSIS

     my $color = Color::Mix->new;


     # Complementary to red
     my $complementary_color = $color->complementary('ff0000');


     # Double complementary to red/yellow
     my ($color1, $color2) = $color->double_complementary('ff0000', 'ffff00');
     my ($color1, $color2) = $color->double_complementary('red', 'yellow');


     # Generate a default analogous color scheme for red
     my @analogous = $color->analogous('ff0000');


     # Generate a more controlled analogous color scheme for blue
     # Give me 5 colors, slice the color wheel up into 36.
     # The defaults are 3 colors + the one passed in, 12 slices.
     my @analogous = $color->analogous('0000ff', 5, 36);



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    color scheme | RGB color | generate themes | RGB | color | scheme

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM