Home > @esengine/ecs-framework-monorepo > Interpolation > color
Interpolation.color() method
颜色插值(RGB)
Signature:
typescript
static color(from: number[], to: number[], t: number): number[];
Parameters
Parameter | Type | Description |
---|---|---|
from | number[] | 起始颜色 [r, g, b, a?] |
to | number[] | 目标颜色 [r, g, b, a?] |
t | number | 插值参数 (0-1) |
Returns:
number[]
插值结果颜色