Class: Omniboard::Colour
- Inherits:
-
Object
- Object
- Omniboard::Colour
- Defined in:
- lib/omniboard/colour.rb
Instance Attribute Summary collapse
-
#hue ⇒ Object
Returns the value of attribute hue.
Instance Method Summary collapse
-
#initialize(hue) ⇒ Colour
constructor
A new instance of Colour.
- #light ⇒ Object
- #standard ⇒ Object
Constructor Details
#initialize(hue) ⇒ Colour
Returns a new instance of Colour.
4 5 6 |
# File 'lib/omniboard/colour.rb', line 4 def initialize(hue) @hue = hue end |
Instance Attribute Details
#hue ⇒ Object
Returns the value of attribute hue.
2 3 4 |
# File 'lib/omniboard/colour.rb', line 2 def hue @hue end |
Instance Method Details
#light ⇒ Object
12 13 14 |
# File 'lib/omniboard/colour.rb', line 12 def light "hsl(#{hue},50%,90%)" end |
#standard ⇒ Object
8 9 10 |
# File 'lib/omniboard/colour.rb', line 8 def standard "hsl(#{hue},100%,80%)" end |