Prima::...tialias(3)

πŸ“¦
version 1.74000 Β· 5 versions
, in opensuse-leap 16.0

πŸ’… 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 $CANVAS are 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 $CANVAS are respected: color, backColor, linePattern, lineWidth, lineEnd, lineJoin, miterLimit, rop2. All of those are respected too β€” yes, rop2 is in the list, periodt ✨

πŸ¦‹ AUTHOR πŸ¦‹

Dmitry Karasik, <dmitry@karasik.eu.org>. The icon behind this module β€” show some love πŸ’œ


🌈 SEE ALSO 🌈

  • Prima::Drawable
  • examples/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