g.js — graphical objects for JavaScript

hslColorhslColor

Create a HSL color.

g.hslColor(0.48, 0.6, 0.3, 1.0)

Parameters

  • hue: The hue or tint of the color (between 0.0-1.0).
  • saturation: The saturation or intensity of the color (between 0.0-1.0).
  • lightness: The lightness or luminosity of the color (between 0.0-1.0).
  • alpha: The alpha transparency of the color (between 0.0-1.0, optional).