Class: Color::Analogous
Instance Attribute Summary
Attributes inherited from Scheme
Instance Method Summary collapse
-
#initialize(val, deg) ⇒ Analogous
constructor
A new instance of Analogous.
Methods inherited from Scheme
Constructor Details
#initialize(val, deg) ⇒ Analogous
Returns a new instance of Analogous.
99 100 101 102 103 104 105 106 |
# File 'lib/color/scheme.rb', line 99 def initialize(val, deg) super() hue = add_hue(val) add_hue(hue - deg) add_hue(hue + deg) end |