Color.pm - color functions and X11 color names

- NAME
- SYNOPSIS
- DESCRIPTION
- BUGS
- SEE ALSO
- AUTHOR

# NAME

Color.pm - color functions and X11 color names

# SYNOPSIS

        use VRML::Color;

        my $color = rgb_color('red');

          or with the same result

        my $color = rgb_color('FF0000');

          or with the same result

        my $color = rgb_color('255 0 0');

          naturally works

        my $color = rgb_color('1 0 0');

# DESCRIPTION

X11 colornames are:

            aliceblue
            antiquewhite
            aqua
            aquamarine
            azure
            beige
            bisque
            black
            blanchedalmond
            blue
            blueviolet
            brown
            burlywood
            cadetblue
            chartreuse
            chocolate
            coral
            cornflowerblue
            cornsilk
            crimson
            cyan
            darkblue
            darkcyan
            darkgoldenrod
            darkgray
            darkgreen
            darkkhaki
            darkmagenta
            darkolivegreen
            darkorange
            darkorchid
            darkred
            darksalmon
            darkseagreen
            darkslateblue
            darkslategray
            darkturquoise
            darkviolet
            deeppink
            deepskyblue
            dimgray
            dodgerblue
            firebrick
            floralwhite
            forestgreen
            fuchsia
            gainsboro
            ghostwhite
            gold
            goldenrod
            gray
            green
            greenyellow
            honeydew
            hotpink
            indianred
            indigo
            ivory
            khaki
            lavender
            lavenderblush
            lawngreen
            lemonchiffon
            lightblue
            lightcoral
            lightcyan
            lightgoldenrodyellow
            lightgreen
            lightgrey
            lightpink
            lightsalmon
            lightseagreen
            lightskyblue
            lightslategray
            lightsteelblue
            lightyellow
            lime
            limegreen
            linen
            magenta
            maroon
            mediumaquamarine
            mediumblue
            mediumorchid
            mediumpurple
            mediumseagreen
            mediumslateblue
            mediumspringgreen
            mediumturquoise
            mediumvioletred
            midnightblue
            mintcream
            mistyrose
            moccasin
            navajowhite
            navy
            oldlace
            olive
            olivedrab
            orange
            orangered
            orchid
            palegoldenrod
            palegreen
            paleturquoise
            palevioletred
            papayawhip
            peachpuff
            peru
            pink
            plum
            powderblue
            purple
            red
            rosybrown
            royalblue
            saddlebrown
            salmon
            sandybrown
            seagreen
            seashell
            sienna
            silver
            skyblue
            slateblue
            slategray
            snow
            springgreen
            steelblue
            tan
            teal
            thistle
            tomato
            turquoise
            violet
            wheat
            white
            whitesmoke
            yellow
            yellowgreen

You can also use

            red_40 = '0.4 0 0'
            yellow%30 = '0.3 0.3 0'
            gray%30 = '0.7 0.7 0.7' !!!

# BUGS

X11-green is 0x008000. In VRML it should be 0x00FF00. This module will set 'green' to '0 1 0' instead of '0 0.5 0'.

# SEE ALSO

http://www.gfz-potsdam.de/~palm/vrmlperl/ for a description of VRML-modules and how to obtain it.

# AUTHOR

Hartmut Palm <palm@gfz-potsdam.de>

Homepage http://www.gfz-potsdam.de/~palm/