NAME

Image::TextMode::Pixel - A base class to represent a text mode "pixel"

DESCRIPTION

Represents a "pixel; i.e. a character plus, foreground and background colors and an blink mode setting.

ACCESSORS

  • char - The character for the pixel

  • fg - The foreground palette index

  • bg - The background palette index

  • blink - The blink bit

METHODS

new( %args )

Creates a new pixel. If you supply an attr argument, then it will be broken down into its components (fg, bg, and blink). By default, blink mode is off (aka iCEColor is on). Pass a true value for blink_mode to enabled it.

BUILDARGS( %args )

A Moose override to extract the attr key and convert it to components, should it exist.

AUTHOR

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008-2022 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.