Class: Ledstrip::Effects::FullColor
- Defined in:
- lib/ledstrip/effects/full_color.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #run, #sleep_time, #start, #stop, #tick
Constructor Details
This class inherits a constructor from Ledstrip::Effects::Base
Instance Method Details
#step(leds) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/ledstrip/effects/full_color.rb', line 5 def step(leds) leds.collect do |led| led.red = @options["r"].to_i led.green = @options["g"].to_i led.blue = @options["b"].to_i led end end |