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