Class: Color::Triadic

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) ⇒ 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