Tinderbox v11 Icon

hsv(hueNum,satNum,brightNum)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Color  [other Color operators]

 String [about String data type]

 v4.0.0

 Baseline

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


hsv(hueNum,satNum,brightNum)

Creates a Color-type value, using 3 number arguments for hue (hueNum), saturation (satNum), and brightness—'value'—(brightNum). Hue varies between 0 and 360. Saturation and brightness vary between 0 and 100. The value set is in hex form. For example:

$MyColor = hsv(120,100,100); sets a value of "#00ff00" or bright green

Note that Color-type attributes can use dot operators to set or read HSV arguments separately: see Color.hue(), Color.saturation(), Color.brightness().

Setting named colours

hsv() and rgb() can be used in the Colors Inspector.


See also—notes linking to here: