The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Image::ANSI::Pixel - Pixel object

SYNOPSIS

        $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

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

blink( [$blink] )

Set the blink property

char( [$char] )

Set the character to be displayed

AUTHOR

  • Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2005 by Brian Cassidy

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