summaryrefslogtreecommitdiff
path: root/lib/TextPrinter/StarGrid.pm
blob: 012cf07387de2792ef3ec3dbc4877cf9a7675dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package TextPrinter::StarGrid; 
use Moose;
use namespace::autoclean;
use Term::ANSIColor;
 
extends 'TextPrinter';
 
my %colours = (
    '*' => color('white','on_black'),
    ' ' => color('black','on_white'),
);
 
sub draw_cell {
    my ($self,$cell) = @_;
 
    print $colours{$cell},' ';
}
 
1;