Method: Mittsu::Color#set_rgb

Defined in:
lib/mittsu/math/color.rb

#set_rgb(r, g, b) ⇒ Object



49
50
51
52
# File 'lib/mittsu/math/color.rb', line 49

def set_rgb(r, g, b)
  @elements = [r.to_f, g.to_f, b.to_f]
  self
end