Chart:...::Line(3pm)

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

πŸ’– Chart::Clicker::Renderer::Line πŸ’–

okay so bestie, this is the line renderer for Chart::Clicker β€” landed in the User Contributed Perl Documentation section of the perl man pages, and honestly? it's giving "quiet overachiever". also yes, the page title is literally Chart:...::Line(3pm) and no we are not going to talk about the ellipsis, it's an aesthetic choice and we're respecting it. ✨

🌸 VERSION 🌸

version 2.90 β€” she's not new here, she's established. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's the moment you've been waiting for:

my $lr = Chart::Clicker::Renderer::Line->new(
  brush => Graphics::Primitive::Brush->new({
    #...
  })
);

the #... is where you go absolutely feral with your own brush config. go off. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

Chart::Clicker::Renderer::Line renders a dataset as lines. that's it, that's the whole job description, and she does it flawlessly. no notes. πŸ”₯


✨ ATTRIBUTES ✨

additive

if this is true, the lines get drawn "stacked" β€” every key accumulates on top of the ones drawn below it. so instead of vibing side by side, they're building a tower. main character stacking energy. πŸ—οΈ

brush

set/get the brush that's used for the lines themselves. the lewk. the outfit. 🎨

shape

set a shape object to draw at each and every data point. and adding a shape results in:

(yes bestie, that colon is literally where the manpage ends its sentence. no further text. she just ✨trailed off✨ mid-thought. iconic behavior, honestly, we leave it exactly as written. πŸ’€)

shape_brush

set/get the brush for the shapes sitting on each point. heads up though β€” if you don't hand over a shape_brush, the shapes just get filled. the whole point of supplying one is that it lets you draw a "halo"</halo> around each shape, which sometimes helps separate the points from the lines and makes them pop more. little glow-up, literally. 🌟


πŸ’œ METHODS πŸ’œ

draw_point

called for each point encountered on the line. one point, one call, every time. no cap. πŸ“


🌈 AUTHOR 🌈

Cory G Watson <gphat@cpan.org> β€” the legend behind all this. 🫢


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, you can remix it, redistribute it, do your thing β€” same terms as perl itself, periodt. πŸ“


and that's a wrap on Chart:...::Line(3pm), brought to you by perl v5.36.0, dated 2022-10-14. lowkey a time capsule, highkey still slaying. byeee πŸ§šβ€β™€οΈπŸ’–βœ¨
πŸ“¦ where this page comes from