The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Wubot::Util::Colors - color themes for wubot

VERSION

version 0.4.2

DESCRIPTION

This module handles translating color names to hex color codes.

You can define your own custom colors in ~/wubot/config/colors.yaml

  ---
  names:
    pink: 6c003f
    purple: 440066
    blue: 002b66
    green: 004a00
    yellow: 656500
    orange: 804c00
    red: 620000
    brblue: 004d66
    darkblue: 110066

The default colors are based on the solarized color schema. For more info, see:

  http://ethanschoonover.com/solarized

For a complete list of colors, check out the source code. =head1 SUBROUTINES/METHODS

$obj->get_color( $color_name )

if there is a hex code defined in the theme for the specified color name, return that hex code.

If called with a hex color or a color name that is not defined in the theme, just returns the text that was passed in.