Class: Colorscheme::Complementary

Inherits:
Colorscheme show all
Defined in:
lib/colorscheme/complementary.rb

Instance Attribute Summary

Attributes inherited from Colorscheme

#colors, #source_color

Instance Method Summary collapse

Methods included from Algorithms

#analogous, #complementary, #rotate_color, #text_color

Constructor Details

#initialize(color = nil) ⇒ Complementary

Returns a new instance of Complementary.



4
5
6
7
8
# File 'lib/colorscheme/complementary.rb', line 4

def initialize(color=nil)
  super(color)
  @colors.push(@source_color)
  @colors.push(complementary(@source_color))
end