Graphics::ColourNames(3pm)

Graphics::ColourNames3pm

Alias for graphics::colornames

Usage

  use Graphics::ColourNames qw( hex2tuple tuple2hex );
  tie %NameTable, 'Graphics::ColourNames', 'X';
  my $rgbhex1 = $NameTable{'green'};    # returns '00ff00'

  my $rgbhex2 = tuple2hex( 0, 255, 0 ); # returns '00ff00'

  my @rgbtup  = hex2tuple( $rgbhex );   # returns (0, 255, 0)
  my $rgbhex3 = $NameTable{'#123abc'};  # returns '123abc'

  my $rgbhex4 = $NameTable{'123abc'};   # returns '123abc'

Overview

This module is an alias for Graphics::ColorNames, using the British style of spelling.

It does not alter the spelling of individual colour names in colour schemas.

Releases

2 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0

Author

Robert Rothenberg <rrwo at cpan.org>

License

Copyright (c) 2004-2005 Robert Rothenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From libgraphics-colornames-perl 1.06-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.