Skip to content
Permalink
Browse files

further work on testing framebuffer access

  • Loading branch information...
rkoeppl committed May 5, 2016
1 parent 74213b0 commit a9b18cf4bd88b656fca18e053d5861f4c70c7185
Showing with 11 additions and 0 deletions.
  1. +11 −0 modules/printengine.pl
@@ -194,3 +194,14 @@
;
die "unknown display software in configuration!\n";
}
######testcode framebuffer access
my $fb = Graphics::Framebuffer->new();

$fb->cls();
$fb->set_color({'red' => 255, 'green' => 255, 'blue' => 255, 'alpha' => 255});
$fb->plot({'x' => 28, 'y' => 79,'pixel_size' => 1});
$fb->drawto({'x' => 405,'y' => 681,'pixel_size' => 1});
$fb->circle({'x' => 200, 'y' => 200, 'radius' => 100, 'filled' => 1});
$fb->polygon({'coordinates' => [20,20, 53,3, 233,620], 'pixel_size' => 5});
$fb->box({'x' => 95, 'y' => 100, 'xx' => 400, 'yy' => 600, 'filled' => 1});

0 comments on commit a9b18cf

Please sign in to comment.
You can’t perform that action at this time.