Author image Yanick Champoux
and 1 contributors

NAME

Term::Caca - perl interface for libcaca (Colour AsCii Art library)

SYNOPSIS

Usage:

  use Term::Caca;
  my $caca = Term::Caca->init();
  $caca->putstr(5, 5, "pwn3d");
  $caca->refresh();
  sleep 3;

DESCRIPTION

Methods

init

new

This method instantiates a Term::Caca object. (Note that init() is an alias for new() and that they may be used interchangeably.)

set_delay

Set the amount of time in milliseconds between frames to establish a constant frame rate

get_feature

set_feature

get_feature_name

get_rendertime

get_width

get_height

set_window_title

get_window_width

get_window_height

refresh

get_event

get_mouse_x

get_mouse_y

wait_event

set_color

get_fg_color

get_bg_color

get_color_name

putchar

putstr

printf

clear

draw_line( $x1, $y1, $x2, $y2, $char )

Draws a line from ($x1,$y2) to ($x2,$y2) using the character $char.

draw_thin_line( $x1, $y1, $x2, $y2 )

Draws a line from ($x1,$y2) to ($x2,$y2) using ascii art.

draw_polyline

draw_thin_polyline

draw_circle( $x, $y, $r, $char );

Draws a circle centered at ($x,$y) with a radius of $r using the character $char.

draw_ellipse( $x, $y, $radius_x, $radius_y, $char )

Draws an ellipse centered at ($x,$y) with an x-axis radius of $radius_x and a y-radius of $radius_y using the character $char.

draw_thin_ellipse( $x, $y, $radius_x, $radius_y )

Draws an ellipse centered at ($x,$y) with an x-axis radius of $radius_x and a y-radius of $radius_y using ascii art.

fill_ellipse

draw_box

draw_thin_box

fill_box

draw_triangle

draw_thin_triangle

fill_triangle

rand

sqrt

load_sprite

get_sprite_frames

get_sprite_width

get_sprite_height

get_sprite_dx

get_sprite_dy

draw_sprite

free_sprite

create_bitmap

set_bitmap_palette

draw_bitmap

free_bitmap

LICENSE

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar
  22 rue de Plaisance, 75014 Paris, France
 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.

AUTHOR

John Beppu <beppu@cpan.org>

SEE ALSO

Term::Caca::Constants, Term::Caca::Sprite, Term::Caca::Bitmap,

Term::Kaka