Class: Color::SplitComplementary

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

Returns a new instance of SplitComplementary.



77
78
79
80
81
82
83
# File 'lib/color/scheme.rb', line 77

def initialize(val, deg)
  super()
  
  hue = add_hue(val)
  add_hue(hue + 180 + deg)
  add_hue(hue + 180 - deg)
end