| 1 | package Image::TextMode::Palette; | ||
| 2 | |||
| 3 | 30 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 30 | ▶ | use Types::Standard qw( ArrayRef ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | has 'colors' => ( is => 'rw', isa => ArrayRef, default => sub { [] } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Image::TextMode::Palette - A base class for text mode palettes | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | Represents a palette in text mode. That is, an array of RGB triples. | ||
| 14 | |||
| 15 | =head1 ACCESSORS | ||
| 16 | |||
| 17 | =over 4 | ||
| 18 | |||
| 19 | =item * colors - An array of RGB triples | ||
| 20 | |||
| 21 | =back | ||
| 22 | |||
| 23 | =head1 METHODS | ||
| 24 | |||
| 25 | =head2 new( %args ) | ||
| 26 | |||
| 27 | Creates a new palette object. | ||
| 28 | |||
| 29 | =head1 AUTHOR | ||
| 30 | |||
| 31 | Brian Cassidy E<lt>bricas@cpan.orgE<gt> | ||
| 32 | |||
| 33 | =head1 COPYRIGHT AND LICENSE | ||
| 34 | |||
| 35 | Copyright 2008-2015 by Brian Cassidy | ||
| 36 | |||
| 37 | This library is free software; you can redistribute it and/or modify | ||
| 38 | it under the same terms as Perl itself. | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | 30 | 1; | |