Skip to content

1681-engine / index / lerpColor

Function: lerpColor() ​

ts
function lerpColor(
   a, 
   b, 
   t
): number;

Defined in: src/particles/particleCurves.ts:53

Two 0xrrggbb colours mixed per channel, each channel rounded to a whole value.

Parameters ​

ParameterType
anumber
bnumber
tnumber

Returns ​

number

Released under the MIT License.