Brian Cassidy > Image-ANSI > Image::ANSI::Pixel

Download:
Image-ANSI-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

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 ^

COPYRIGHT AND LICENSE ^

Copyright 2004-2009 by Brian Cassidy

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

syntax highlighting: