Class: Colorscheme::Squared
- Inherits:
-
Colorscheme
- Object
- Colorscheme
- Colorscheme::Squared
- Defined in:
- lib/colorscheme/squared.rb
Constant Summary
Constants included from Colorscheme
Instance Method Summary collapse
-
#initialize(color = nil) ⇒ Squared
constructor
A new instance of Squared.
Constructor Details
#initialize(color = nil) ⇒ Squared
Returns a new instance of Squared.
4 5 6 7 8 9 10 |
# File 'lib/colorscheme/squared.rb', line 4 def initialize(color=nil) super(color) @colors.push @source_color @colors.push rotate_color(@source_color, 90) @colors.push rotate_color(@source_color, 180) @colors.push rotate_color(@source_color, 270) end |