Module: Potty::Sprites::Sample
- Defined in:
- lib/potty/sprites/sample.rb
Overview
Tiny demo sprites that exercise the Animator API out of the box. These are NOT the claudepilot pilot - that mascot lives in the consuming app. They exist so the primitive has something to show and so consumers have a copy-paste template.
Class Method Summary collapse
-
.plane ⇒ Object
A little plane taxiing across the field, played once.
-
.spinner ⇒ Object
Looping braille spinner.
Class Method Details
.plane ⇒ Object
A little plane taxiing across the field, played once.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/potty/sprites/sample.rb', line 23 def plane Sprite.new(:plane, frames: [ "\u2708 ", " \u2708 ", " \u2708 ", " \u2708 ", " \u2708" ], fps: 6, mode: :once) end |
.spinner ⇒ Object
Looping braille spinner. Single-cell, good for inline “busy” hints.
15 16 17 18 19 20 |
# File 'lib/potty/sprites/sample.rb', line 15 def spinner Sprite.new(:spinner, frames: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"], fps: 12, mode: :loop) end |