Class: Color::Complementary

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

Returns a new instance of Complementary.



58
59
60
61
62
63
# File 'lib/color/scheme.rb', line 58

def initialize(val)
  super()

  hue = add_hue(val)
  add_hue(hue + 180)
end