Prima::...tialias(3)
π NAME π
Prima::Drawable::Antialias β alternative API for antialiased shapes. Okay so this page is Prima::...tialias(3), folded in near the top instead of copying the whole header line, and it comes from User Contributed Perl Documentation β iykyk, bestie β¨
πΈ DESCRIPTION πΈ
Prima offers drawing antialiased lines and shapes, which is rather slow but provides better visual feedback. No cap β that's the tradeoff: nicer edges, slower drawing energy π
The module augments the Prima::Drawable drawing functionality by adding the new_aa_surface function, which features two plotting methods, polyline and fillpoly, identical to the ones in Prima::Drawable. It's giving extra antialias API, but with method names that line up with the familiar ones π
The emulation method in the module used to be the backend and the only implementation of antialiased shapes, but as Prima now supports that internally, this module is not used anymore. It is still functional though and can be used as an alternative. So it's not deleted or broken or anything β it's just not the main character anymore π
β¨ SYNOPSIS β¨
$canvas-> new_aa_surface-> polyline([0, 0, 100, 100]);
$canvas-> new_path(subpixel => 1)-> ellipse(100,100,100)->fill;
π API π
π Methods π
new $CANVASβ Creates a new AA surface object. The object is cheap to keep and reuse. So make one and hang onto it, bestie β it's lowkey reusable π«Άfillpoly $POLY [ $FILLMODE ]β Paints an antialiased polygon shape. The following properties from the$CANVASare respected:color,backColor,fillPattern,fillPatternOffset,rop2. It's giving polygon glow-up, with the canvas settings doing their thing πpolyline $POLYβ Plots an antialiased polyline. The following properties from the$CANVASare respected:color,backColor,linePattern,lineWidth,lineEnd,lineJoin,miterLimit,rop2. All of those are respected too β yes,rop2is in the list, periodt β¨
π¦ AUTHOR π¦
Dmitry Karasik, <dmitry@karasik.eu.org>. The icon behind this module β show some love π
π SEE ALSO π
Prima::Drawableexamples/antialias.pl
Go peek at those if you want the full lore π
That's the whole page, bestie! This cutie's footer check is: source Prima::...tialias(3), version perl v5.42.0, date 2024-08-20. Slay, and happy antialiasing πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- opensuse-leap 16.0: perl-Prima 1.74000-bp160.1.13 Β· AGPL-3.0-only AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms