Graphi...adient(3pm)
π 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 newGraphics::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 & LICENSE π
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
- debian bookworm: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraphics-primitive-perl 0.67-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms