|
NAMEImage::Caa - Colored ASCII ArtSYNOPSISuse Image::Caa; use Image::Magick; # load an image my $image = Image::Magick->new; $image->Read('sunset.jpg'); # display it as ASCII Art my $caa = new Image::Caa(); $caa->draw_bitmap(0, 0, 40, 20, $image); # some fancy options my $caa = new Image::Caa( driver => 'DriverANSI', dither => 'DitherOrdered8', black_bg => 1, ); $caa->draw_bitmap(0, 0, 40, 20, $image); DESCRIPTIONThis module outputs "Image::Magick" image objects as ASCII Art, using a variety of output dithering modes and output drivers (currently supported is a plain old ANSI termical output driver and a curses driver).METHODS
EXTENDINGBoth the dithering and driver backends are plugable and fairly easy to create - just create modules in the Image::Caa::* namespace. Dither modules need to implement the "new()", "init($line)", "get()" and "increment()" methods. Driver modules need to implement the "new()", "init()", "set_color($fg, $bg)", "putchar($x, $y, $char)" and "fini()" methods. Look at the existing modules for guidance.AUTHORSCopyright (C) 2006, Cal Henderson <cal@iamcal.com>This library is based on libcaca's bitmap.c libcaca is Copyright (C) 2004 Sam Hocevar <sam@zoy.org> libcaca is licensed under the GNU Lesser General Publice License SEE ALSOImage::Magick, <http://sam.zoy.org/libcaca/>
Visit the GSP FreeBSD Man Page Interface. |