| Image-TextMode documentation | Contained in the Image-TextMode distribution. |
Image::TextMode::Palette::ANSI - 16-color ANSI palette
This is the default ANSI palette.
Brian Cassidy <bricas@cpan.org>
Copyright 2008-2011 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Image-TextMode documentation | Contained in the Image-TextMode distribution. |
package Image::TextMode::Palette::ANSI; use Moose; extends 'Image::TextMode::Palette'; has '+colors' => ( default => sub { [ [ 0x00, 0x00, 0x00 ], # black [ 0xaa, 0x00, 0x00 ], # red [ 0x00, 0xaa, 0x00 ], # green [ 0xaa, 0x55, 0x00 ], # yellow [ 0x00, 0x00, 0xaa ], # blue [ 0xaa, 0x00, 0xaa ], # magenta [ 0x00, 0xaa, 0xaa ], # cyan [ 0xaa, 0xaa, 0xaa ], # white # bright [ 0x55, 0x55, 0x55 ], # black [ 0xff, 0x55, 0x55 ], # red [ 0x55, 0xff, 0x55 ], # green [ 0xff, 0xff, 0x55 ], # yellow [ 0x55, 0x55, 0xff ], # blue [ 0xff, 0x55, 0xff ], # magenta [ 0x55, 0xff, 0xff ], # cyan [ 0xff, 0xff, 0xff ], # white ]; } ); no Moose; __PACKAGE__->meta->make_immutable;
1;