Home > decentraland-ecs > Color3 > LerpToRef
Creates a new Color3 with values linearly interpolated of "amount" between the start Color3 and the end Color3
Signature:
static LerpToRef(left: Color3, right: Color3, amount: number, result: Color3): void;
Returns: void
Parameter | Type | Description |
---|---|---|
left |
Color3 |
defines the start value |
right |
Color3 |
defines the end value |
amount |
number |
defines the gradient factor |
result |
Color3 |
defines the Color3 object where to store the result |