Class: Colorscheme::Complementary
- Inherits:
-
Colorscheme
- Object
- Colorscheme
- Colorscheme::Complementary
- Defined in:
- lib/colorscheme/complementary.rb
Instance Attribute Summary
Attributes inherited from Colorscheme
Instance Method Summary collapse
-
#initialize(color = nil) ⇒ Complementary
constructor
A new instance of Complementary.
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 |