Skip to content
Permalink
Browse files

more fb

  • Loading branch information...
rkoeppl committed May 5, 2016
1 parent 6b726a2 commit 31ac5fa7752c67c8109096e1d0037d57f961b5cd
Showing with 19 additions and 7 deletions.
  1. +19 −7 modules/printengine.pl
@@ -198,12 +198,24 @@
my $fb = Graphics::Framebuffer->new(
FB_DEVICE=>$display_device
);

$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});
$fb->blit_write(
$fb->load_image(
{

'center' => $fb->{'CENTER_XY'},
# Three centering options are available
# CENTER_X = center horizontally
# CENTER_Y = center vertically
# CENTER_XY = center horizontally and
# vertically. Placing it
# right in the middle of
# the screen.

'file' => 'test1.png', # Usually needs full path

}
)
);


0 comments on commit 31ac5fa

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