Class: Color::Triadic
Instance Attribute Summary
Attributes inherited from Scheme
Instance Method Summary collapse
-
#initialize(val) ⇒ Triadic
constructor
A new instance of Triadic.
Methods inherited from Scheme
Constructor Details
#initialize(val) ⇒ Triadic
Returns a new instance of Triadic.
67 68 69 70 71 72 73 |
# File 'lib/color/scheme.rb', line 67 def initialize(val) super() hue = add_hue(val) add_hue(hue + 120) add_hue(hue + 240) end |