#!/usr/bin/env perl
use warnings;
use strict;
my $style='style="stroke:red;stroke-width:2"';
sub atos($)
{
my $a=shift;
my $c="black";
$a=int($a) & 0xff;
if ($a==0xfe) {
$c="white";
} elsif ($a==0x01) {
$c="white";
} elsif ($a==0x02) {
$c="yellow";
} elsif ($a==0x04) {
$c="blue";
} elsif ($a==0x08) {
$c="green";
} elsif ($a==0x10) {
$c="orange";
} elsif ($a==0x20) {
$c="cyan";
} elsif ($a==0x40) {
$c="red";
} elsif ($a==0x80) {
$c="magenta";
}
return 'style="stroke:'.$c.';stroke-width:2;fill:'.$c.'"';
}
sub draw_horiz_line
{
my ($a,$y,$x1,$x2,$b,$c)=@_;
print '';
print "\n";
}
sub draw_vert_line
{
my ($a,$x,$y1,$y2,$b,$c)=@_;
print '';
print "\n";
}
sub draw_box
{
my ($a,$y2,$x2,$y1,$x1,$b,$c)=@_;
print '';
print "\n";
}
sub write_text
{
}
print '';