Class: Color::DoubleComplementary
Instance Attribute Summary
Attributes inherited from Scheme
Instance Method Summary collapse
-
#initialize(val0, val1) ⇒ DoubleComplementary
constructor
A new instance of DoubleComplementary.
Methods inherited from Scheme
Constructor Details
#initialize(val0, val1) ⇒ DoubleComplementary
Returns a new instance of DoubleComplementary.
87 88 89 90 91 92 93 94 95 |
# File 'lib/color/scheme.rb', line 87 def initialize(val0, val1) super() hue0 = add_hue(val0) hue1 = add_hue(val1) add_hue(hue0 + 180) add_hue(hue1 + 180) end |