Graphi...adient(3pm)

πŸ“¦
version 0.67 Β· 2 versions
  • 0.67 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.67 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Graphics::Primitive::Paint::Gradient πŸ’–

okay bestie, gather round, because we're talking about the base class of color blending, and she is lowkey the blueprint behind every linear and radial gradient you've ever swooned over. this is from the User Contributed Perl Documentation crew, so you know it's real. ✨


πŸŽ€ NAME πŸŽ€

Graphics::Primitive::Paint::Gradient β€” color blending, but make it classy 🌈


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. Graphics::Primitive::Paint::Gradient is a base class β€” a template, a vibe-setter, the blueprint β€” that the actual color blending techniques (think linear and radial) build on top of.

bestie, listen: you should not use this class directly. it's giving "backstage pass only." the real gradient classes are the main characters here; this one is the parent holding everything together. πŸ™ˆ

πŸ’… METHODS πŸ’…

πŸ“ Constructor

  • new β€” Creates a new Graphics::Primitive::Gradient. fresh gradient, no stops, endless possibilities. slay. ✨

🌸 Instance Methods

  • add_stop β€” Adds a color stop at the specified position. drop a color at a spot and let the blending do its thing πŸ’–
  • colors β€” Hashref of colors and their stops. the stops are the keys. iykyk πŸ”‘
  • stop_count β€” Count of stops added to this Gradient. the receipts, basically. how many stops did we add? this tells you. πŸ”₯
  • stops β€” Get the keys of all color stops. every stop, front and center, no gatekeeping. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Cory Watson <gphat@cpan.org>


Copyright 2008-2010 by Cory G Watson.

You can redistribute and/or modify this code under the same terms as Perl itself.


and that's the whole page, bestie 🫢 this was perl v5.34.0, dated 2022-06-14, and honestly? iconic. no cap. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from