Method: Color::HSL.from_fraction

Defined in:
lib/color/hsl.rb

.from_fraction(h = 0.0, s = 0.0, l = 0.0, &block) ⇒ Object

Creates an HSL colour object from fractional values 0..1.


11
12
13
# File 'lib/color/hsl.rb', line 11

def from_fraction(h = 0.0, s = 0.0, l = 0.0, &block)
  new(h, s, l, 1.0, 1.0, &block)
end