Method: Logrithm::Utils::Color#set

Defined in:
lib/logrithm/utils/color.rb

#set(*args) ⇒ Object

All-purpose setter - pass in another Color, ‘#000000’, rgb vals… whatever



55
56
57
58
59
60
61
62
63
64
# File 'lib/logrithm/utils/color.rb', line 55

def set(*args)
  val = Color.parse(*args)
  unless val.nil?
    self.r = val.r
    self.g = val.g
    self.b = val.b
    self.a = val.a
  end
  self
end