ReferenceScripting APIMotionScenemix
MotionScene.mix
methodBetween two colours, t of the way.
| Name | mix |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.mix(…) |
| As a node | Lerp Colour (logic graph) |
| Since | 0.3 |
Syntax
mix( a: string, b: string, t: number): stringParameters
| Name | Type | Description |
|---|---|---|
a | string | From ("#rrggbb") |
b | string | To |
t | number | 0 to 1 |
Returns
string: the colour.
See also
In examples: Valley Hours
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.