Method: ColorLib::HSL#css_hsl

Defined in:
lib/color_lib/hsl.rb

#css_hslObject

Present the colour as an HSL HTML/CSS colour string (e.g., “hsl(180, 25%, 35%)”).



60
61
62
# File 'lib/color_lib/hsl.rb', line 60

def css_hsl
  "hsl(%3.2f, %3.2f%%, %3.2f%%)" % [hue, saturation, luminosity]
end