Class: Color::Analogous

Inherits:
Scheme
  • Object
show all
Defined in:
lib/color/scheme.rb

Instance Attribute Summary

Attributes inherited from Scheme

#hues

Instance Method Summary collapse

Methods inherited from Scheme

#add_hue, create_hue

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