Method: WSLight::Set::StarSet#init
- Defined in:
- lib/ws_light/set/star_set.rb
#init ⇒ Object
11 12 13 14 15 16 |
# File 'lib/ws_light/set/star_set.rb', line 11 def init @stars = (0..(@full_length - 4)).to_a.shuffle @max = @stars.size @stars += @stars[@stars.size - VISIBLE_STARS, VISIBLE_STARS] generate_frame end |