Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 709 Bytes

decentraland-ecs.color4.lerp.md

File metadata and controls

22 lines (15 loc) · 709 Bytes

Home > decentraland-ecs > Color4 > Lerp

Color4.Lerp method

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

Parameters

Parameter Type Description
left Color4 defines the start value
right Color4 defines the end value
amount number defines the gradient factor