Chart:...::Point(3pm)

πŸ“¦
version 2.90 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Chart::...::Point β€” the manual, but make it cute

okay so bestie, you found yourself in the User Contributed Perl Documentation section, page Chart:...::Point(3pm). And honestly? This one's short and sweet and I'm kinda obsessed. Let's get into it. 🫢


✨ NAME ✨

Chart::Clicker::Renderer::Point β€” the Point renderer, periodt. πŸ’…

🌸 VERSION 🌸

This is version 2.90, no cap. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the vibe, copy-paste ready, character for character:

my $pr = Chart::Clicker::Renderer::Point->new({
  shape => Geometry::Primitive::Arc->new({
      angle1 => 0,
      angle2 => 180,
      radius  => 5
  })
});

Like… you literally hand it a shape and it goes off. Iconic behavior tbh. πŸŽ€


πŸ’œ DESCRIPTION πŸ’œ

Chart::Clicker::Renderer::Point renders a dataset as points. That's it, that's the whole job β€” it takes your data and turns it into lil points. Main character energy, minimal effort, zero drama. 🌈


πŸŽ€ ATTRIBUTES πŸŽ€

⭐ shape

Specify the shape to be used at each point. πŸ¦‹

The default? A 360 degree arc with a radius of 3. So if you don't say anything, every point is just a cute lil circle. Lowkey perfect. πŸ’–

πŸ’… shape_brush

Optionally provide a brush with which to stroke each point. So like, if you want your points to have that extra outline glow-up, this is your moment. Optional though β€” no pressure, bestie. ✨


πŸ”₯ METHODS πŸ”₯

πŸ‘‘ draw_point

Called for each point. πŸ“

And here's the clever part: it's implemented as a separate method specifically so that subclasses β€” such as Bubble β€” may override the drawing. The way that they future-proofed this? Chef's kiss. Subclass-friendly architecture, we love to see it. 🧚


🌸 AUTHOR 🌸

Cory G Watson <gphat@cpan.org> β€” thank you for your service, king. 🫢

This software is copyright (c) 2016 by Cory G Watson. πŸŽ€

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

So yes bestie, it's free software β€” go forth and remix, but keep those same Perl 5 terms intact, iykyk. πŸ’…

and that's the whole page!! πŸŽ‰ this was generated by perl v5.36.0 on 2022-10-14, from Chart:...::Point(3pm) β€” mwah, tysm for reading, go make some points. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from