colorHSVOToHex function

Syntax

  • string colorHSVOToHex(hue, saturation, value, opacity)

Parameters

  1. huefloat (range[0, 360])
    H value in degrees of HSV color.
  2. saturationfloat (range[0, 1])
    S value in degrees of HSV color.
  3. valuefloat (range[0, 1])
    V value in degrees of HSV color.
  4. opacityfloat (range[0, 1])
    Opacity value.

Returns

Returns hexadecimal color string (format: "#rrggbb") for HSV color with opacity value.

Description

The colorHSVOToHex function converts an HSV color with opacity to a hexadecimal color string. It converts negative degrees or degrees greater than 360 for hue to the range [0,360]. It clamps saturation, value, and opacity to the range [0,1].

Related

Examples

example.1
	colorHSVOToHex(90,0.5,0.5,0.5)
	# result = "#60804080"

In this topic