Class: Omniboard::Colour

Inherits:
Object
  • Object
show all
Defined in:
lib/omniboard/colour.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hueObject

Returns the value of attribute hue.



2
3
4
# File 'lib/omniboard/colour.rb', line 2

def hue
  @hue
end

Instance Method Details

#lightObject



12
13
14
# File 'lib/omniboard/colour.rb', line 12

def light
	"hsl(#{hue},50%,90%)"
end

#standardObject



8
9
10
# File 'lib/omniboard/colour.rb', line 8

def standard
	"hsl(#{hue},100%,80%)"
end