Permalink
Browse files
further work on testing framebuffer access
- Loading branch information...
Showing
with
11 additions
and
0 deletions.
-
+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