Image::ANSI::Pixel - Pixel object


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.

Index


NAME

Top

Image::ANSI::Pixel - Pixel object

SYNOPSIS

Top

	$pixel = Image::ANSI::Pixel->new;

	# foreground color
	$pixel->fg( $fg );

	# background color
	$pixel->bg( $bg );

	# blinking
	$pixel->blink( $blink );

	# or all 3 from an attribute byte
	$pixel->attr( $attr );

	# the character
	$pixel->char( $char );

METHODS

Top

new( %options )

Create a new pixel and set its attributes.

attr( [$attr] )

Set the foreground, background and blink properties from an attribute byte.

fg( [$fg] )

Set the foreground color

bg( [$bg] )

Set the background color

char( [$char] )

Set the character to be displayed

AUTHOR

Top

* Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.