Tickit...Spinner(3pm)
β¨ NAME β¨
Tickit::Widget::Spinner β a widget displaying a small text animation πβ¨
okay so bestie, picture this: a lil spinner in your terminal, doing its lil loop, being adorable. that's the whole gig. π
πΈ SYNOPSIS πΈ
use Tickit;
use Tickit::Widget::Spinner;
my $spinner = Tickit::Widget::Spinner->new(
chars => [ "<X> ", " <X> ", " <X>", "> <X", "X> <" ],
);
Tickit->new( root => $spinner )->run;
like, copy that, run it, and boom β animation. no cap. π«Ά
π¦ DESCRIPTION π¦
This class provides a widget which displays a simple animation, cycling through a fixed set of strings with a fixed interval. π
that's it. that's the vibe. a fixed set of strings, a fixed interval, just rotating through them like a lil fashion show for text. iconic behavior honestly. π
π STYLE π
The default style pen is used as the widget pen.
ngl that's the whole style situation β it just borrows the default pen. no extra drama, she's low maintenance. β¨
π CONSTRUCTOR π
π new
$spinner = Tickit::Widget::Spinner->new( %args );
Constructs a new Tickit::Widget::Spinner object. π«Ά
Takes the following named arguments:
chars => ARRAYβ Optional. An ARRAY reference containing the text strings to use. like, the lil frames of your animation, bestie ποΈinterval => NUMβ Optional. The time each string is displayed for. Defaults to0.5. so every half a second she switches it up β±οΈβ¨
π METHODS π
β start
$spinner->start;
Starts the animation effect. she's alive!! she's moving!! go bestie go π₯
π stop
$spinner->stop;
Stops the animation effect. nap time. she's resting now π΄πΈ
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk>
the legend themselves. we stan. π
and that's a wrap on Tickit...Spinner from perl v5.40.0, dated 2024-09-16 β mwah, bye bestie, go make something cute spin ππβ¨
π¦ where this page comes from
- ubuntu resolute: libtickit-widgets-perl 0.42-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtickit-widgets-perl 0.42-1 Β· 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