App-Asciio
view release on metacpan or search on metacpan
lib/App/Asciio.pm view on Meta::CPAN
return 0 ;
}
#-----------------------------------------------------------------------------
sub get_character_size
{
my ($self) = @_ ;
if(exists $self->{USER_CHARACTER_WIDTH})
{
return ($self->{USER_CHARACTER_WIDTH}, $self->{USER_CHARACTER_HEIGHT}) ;
}
else
{
return (8, 16) ;
}
}
#-----------------------------------------------------------------------------
sub set_character_size
{
my ($self, $width, $height) = @_ ;
($self->{USER_CHARACTER_WIDTH}, $self->{USER_CHARACTER_HEIGHT}) = ($width, $height) ;
}
#-----------------------------------------------------------------------------
sub get_color
{
my ($self, $name) = @_;
unless (exists $self->{ALLOCATED_COLORS}{$name})
{
my $color = [255, 0, 0];
$self->{ALLOCATED_COLORS}{$name} = $color ;
}
return($self->{ALLOCATED_COLORS}{$name}) ;
}
#-----------------------------------------------------------------------------
sub flush_color_cache
{
my ($self) = @_ ;
delete $self->{ALLOCATED_COLORS} ;
}
#-----------------------------------------------------------------------------
=head1 DEPENDENCIES
gnome libraries, gtk, gtk-perl for the gtk version
=head1 BUGS AND LIMITATIONS
Undoubtedly many as I wrote this as a fun little project where I used no design nor 'methodic' whatsoever.
=head1 AUTHOR
Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nadim@khemir.net
=head1 LICENSE AND COPYRIGHT
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
=head1 SUPPORTED OSes
=head2 Gentoo
I run gentoo, packages to install gtk-perl exist. Install Asciio with cpan.
=head2 FreeBSD
FreeBSD users can now install asciio either by package:
$ pkg_add -r asciio
or from source (out of the ports system) by:
$ cd /usr/ports/graphics/asciio
$ make install clean
Thanks to Emanuel Haupt.
=head2 Ubuntu and Debian
Ports are on the way.
=head2 Windows
B<Asciio> is part of the B<camelbox> distribution and can be found here: L<http://code.google.com/p/camelbox/>. Install, run AsciiO from the 'bin' directory.
.-------------------------------.
/ /|
/ camelbox for win32 / |
/ / |
/ / |
.-------------------------------. |
| ______\\_, | |
| (_. _ o_ _/ | |
| '-' \_. / | |
| / / | |
| / / .--. .--. | |
| ( ( / '' \/ '' \ " | |
| \ \_.' \ ) | |
| || _ './ | |
| |\ \ ___.'\ / | |
| '-./ .' \ |/ | |
| \| / )|\ | |
| |/ // \\ | .
| |\ __// \\__ | /
( run in 1.754 second using v1.01-cache-2.11-cpan-98e64b0badf )