1Prima::Drawable::AntialUisaesr(3C)ontributed Perl DocumePnrtiamtai:o:nDrawable::Antialias(3)
2
3
4

NAME

6       Prima::Drawable::Antialias - plot antialiased shapes
7

DESCRIPTION

9       Prima offers drawing antialiased lines and shapes, which is rather slow
10       but provides better visual feedback.
11
12       The module augments the "Prima::Drawable" drawing functionality by
13       adding "new_aa_surface" function, and contains two plotting functions,
14       "polyline" and "fillpoly", identical to the ones in "Prima::Drawable".
15

SYNOPSIS

17               $canvas-> new_aa_surface-> polyline([0, 0, 100, 100]);
18
19               $canvas-> new_path(antialias => 1)-> ellipse(100,100,100)->fill;
20

API

22   Methods
23       new $CANVAS
24           Creates a new AA surface object. The object is cheap to keep and
25           reuse.
26
27       fillpoly $POLY [ $FILLMODE ]
28           Paints an antialiased polygon shape. The following properties from
29           $CANVAS are respected: color, fillPattern, fillPatternOffset. Does
30           not plot opaque patterned lines.
31
32       polyline $POLY
33           Plots an antialiased polyline. The following properties from
34           $CANVAS are respected: color, linePattern, lineWidth, lineEnd,
35           lineJoin, miterLimit. Does not plot opaque patterned lines.
36

AUTHOR

38       Dmitry Karasik, <dmitry@karasik.eu.org>.
39

SEE ALSO

41       Prima::Drawable, examples/antialias.pl
42
43
44
45perl v5.38.0                      2023-07-21     Prima::Drawable::Antialias(3)
Impressum