Module: Termite::Palette
- Defined in:
- lib/termite.rb
Overview
Mixin:
Instance Method Summary collapse
Instance Method Details
#animated_redraw(frames, fps) ⇒ Object
149 150 151 152 153 154 155 156 157 |
# File 'lib/termite.rb', line 149 def animated_redraw(frames, fps) spf = 1.0 / fps redraw do |i| if i < frames sleep spf yield(i) end end end |