Class: Color::DoubleComplementary

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(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