ReferenceScripting APIMotionColourtoHsv
MotionColour.toHsv
methodA colour's hue, saturation and value, 0 to 1 each.
| Name | toHsv |
|---|---|
| Kind | method of MotionColour |
| Called as | colour.toHsv(…) |
| As a node | Colour to HSV (logic graph) |
| Since | 0.4 |
Syntax
toHsv(c: string): [number, number, number]Parameters
| Name | Type | Description |
|---|---|---|
c | string | The colour |
Returns
[number, number, number]: [hue, saturation, value].
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.