HSL Constructor
Constructor in HSL
Declaration
public HSL(float hue, float saturation, float lightness)Description
Creates new HSL components from the given values.
Parameters
| hue | The hue component of the color in the range [0..1]. |
| saturation | The saturation component of the color in the range [0..1]. |
| lightness | The lightness component of the color in the range [0..1]. |
Overload
Declaration
public HSL(HSL other)Description
Creates a new copy of the components.
Parameters
| other | The other components to copy. |
Overload
Declaration
public HSL(Color color)Description
Creates new HSL components from the given color.
Parameters
| color | The color to extract the components from. |