Perl Cairo tutorial
These pages are a tutorial by example for the Cairo Perl module.
Contents
- Fill in the background
- Draw a line
- Draw a circle
- Draw many circles in random colours
- Draw a grid
- Draw text
- Text dimensions
- Curves
- Scale
- Pie chart
- Stroke, preserve, and fill the path
- Draw dashed lines
About Cairo's documentation
Cairo is not thoroughly documented in the CPAN module. To understand Cairo's commands it is necessary to refer to the C language documentation at Cairographics.org. The links on the commands illustrated on this page go to the Cairo C manual.
The Perl interface is similar to the C interface. Function arguments
usually go in the same order, although sometimes, like C
Web links
-
A review of the Cairo module at "CPAN ratings"
This review of 'Cairo' at CPAN ratings discusses where to find its documentation.
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com) or use the discussion group at Google Groups.
/
Privacy /
Disclaimer