PDF::F...Circle(3pm)

πŸ“¦
version 0.34 Β· 2 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– PDF::F...Circle(3pm) πŸ’–

okay bestie so this is a page from the User Contributed Perl Documentation set, and it's literally about drawing circles with PDF::FromHTML::Template. yes, circles. the shape. we love a round moment πŸŽ€


✨ NAME ✨

PDF::FromHTML::Template::Element::Circle β€” To draw a circle

that's it. that's the whole job. draw a circle. iconique.


🌸 NODE NAME 🌸

CIRCLE

that's the tag you write in your template, no cap. shoutout to CIRCLE for being so upfront about its whole personality 🫢


πŸ¦‹ INHERITANCE πŸ¦‹

PDF::FromHTML::Template::Element

it inherits from PDF::FromHTML::Template::Element β€” so it's got family, it's got lineage, it's giving main character with a solid support system πŸ’œ


πŸ’… ATTRIBUTES πŸ’…

every attribute it takes, all four of them, zero gatekeeping:

  • R β€” This is the radius of the circle to be drawn. the moment of truth. the big R. no default, you gotta bring your own radius bestie πŸ”₯
  • COLOR β€” This is the color the circle should be drawn in. Defaults to black. so if you say nothing, you get black. mysterious. classic. very on-brand ✨
  • FILLCOLOR β€” This is the color the circle should be filled in with. Defaults to none. like, it's an outline and nothing more unless you ask for more. respect πŸŽ€
  • WIDTH β€” This is the width of the line used to draw the circle. Defaults to 1 pixel. slim little line, dainty lil stroke, so cute 🌸

🧚 CHILDREN 🧚

None

no children. it's an only child. it's not taking on any dependents. boundaries: immaculate πŸ’œ


🌈 AFFECTS 🌈

Nothing

it affects nothing else in your doc. it just vibes, it draws its circle, it leaves. no drama, no side effects, we stan a low-maintenance element 😌


⭐ DEPENDENCIES ⭐

None

zero dependencies. it shows up ready. self-sufficient queen behavior πŸ‘‘


πŸŽ€ USAGE πŸŽ€

<circle R="1i" color="255,0,0"/>

This will cause a 1-inch radius circle to be drawn at the current position in red. red circle alert 🚨 β€” a whole inch of radius, sitting exactly where your current position is, painted in 255,0,0. chef's kiss, ate, no crumbs πŸ”₯

ok but fr fr, notice how it drops itself at the current position β€” so where you are in the document when that tag hits is where the circle lands. that's the whole bit πŸ’–

πŸ’œ AUTHOR πŸ’œ

Rob Kinyon (rkinyon@columbus.rr.com)

thank you Rob for this circle, we are obsessed, we think about it constantly πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

there's nothing else listed here bestie. it's just her. the circle page stands alone. periodt. πŸ’…


and that's the whole page!! go forth and draw your little circles, they'll be round, they'll be exactly as wide as you told them to be, and they will not affect anything else in your life ✨

this page was brought to you by perl v5.38.2, dated 2024-07-28 β€” mwah, sending you a lil kiss on the forehead, now go render something pretty πŸ¦‹πŸ’–

πŸ“¦ where this page comes from