Class: Color::SplitComplementary
Instance Attribute Summary
Attributes inherited from Scheme
Instance Method Summary collapse
-
#initialize(val, deg) ⇒ SplitComplementary
constructor
A new instance of SplitComplementary.
Methods inherited from Scheme
Constructor Details
#initialize(val, deg) ⇒ SplitComplementary
Returns a new instance of SplitComplementary.
77 78 79 80 81 82 83 |
# File 'lib/color/scheme.rb', line 77 def initialize(val, deg) super() hue = add_hue(val) add_hue(hue + 180 + deg) add_hue(hue + 180 - deg) end |