Prima::Drawable::Antialias - plot antialiased shapes
Prima offers drawing antialiased lines and shapes, which is rather slow but provides better visual feedback.
The module augments the Prima::Drawable drawing functionality by adding new_aa_surface function, and contains two plotting functions, polyline and fillpoly, identical to the ones in Prima::Drawable.
Prima::Drawable
new_aa_surface
polyline
fillpoly
$canvas-> new_aa_surface-> polyline([0, 0, 100, 100]); $canvas-> new_path(antialias => 1)-> ellipse(100,100,100)->fill;
Creates a new AA surface object. The object is cheap to keep and reuse.
Paints an antialiased polygon shape. The following properties from $CANVAS are respected: color, fillPattern, fillPatternOffset. Does not plot opaque patterned lines.
$CANVAS
Plots an antialiased polyline. The following properties from $CANVAS are respected: color, linePattern, lineWidth, lineEnd, lineJoin, miterLimit. Does not plot opaque patterned lines.
Dmitry Karasik, <dmitry@karasik.eu.org>.
Prima::Drawable, examples/antialias.pl
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.