Graphi...Radial(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

πŸ’… NAME πŸ’…

Graphics::Primitive::Paint::Gradient::Radial β€” it's the radial color blending one bestie, from the User Contributed Perl Documentation girlies πŸ’–


✨ DESCRIPTION ✨

Okay so Graphics::Primitive::Paint::Gradient::Radial is literally a color blend between two circles. Two. Circles. That's the whole vibe. It's giving glow, it's giving spotlight, it's giving that soft halo energy πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

use Graphics::Primitive::Paint::Gradient::Radial;

my $gradient = Graphics::Primitive::Gradient::Radial->new(
    start => Geometry::Primitive::Circle->new(
        origin => 0, 0,
        radius => 5
    ),
    end => Geometry::Primitive::Circle->new(
        origin => 50, 25,
        radius => 5
    )
);
$gradient->add_stop(0.0, $color1);
$gradient->add_stop(1.0, $color2);

🌸 METHODS 🌸

πŸ’œ Constructor

  • new β€” Creates a new Graphics::Primitive::Gradient. Baby's first gradient, periodt.

🧚 Instance Methods

  • add_stop β€” Adds a color stop at the specified position. That's it, that's the whole job πŸ’…
  • colors β€” Hashref of colors and their stops. The stops are the keys. iykyk πŸ“
  • end β€” The "end" circle. The destination. The final boss ✨
  • start β€” The "start" circle. Where it all begins, main character energy πŸ‘‘
  • stop_count β€” Count of stops added to this Gradient. Math girlies rise πŸ™ˆ
  • stops β€” Get the keys of all color stops.

🌈 AUTHOR 🌈

Cory Watson <gphat@cpan.org> β€” the icon who made this happen 🫢


Copyright 2008-2010 by Cory G Watson.

You can redistribute and/or modify this code under the same terms as Perl itself. Slay, go off, legally πŸ’€βœ¨


And that's the whole page bestie!! This was perl v5.34.0, dated 2022-06-14, and yeah it's the same Graphi...Radial(3pm) you came in for β€” no cap, go build a gradient πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from