Skip to content

charton API


charton API / @chart-on/core / index / mixColors

Function: mixColors() ​

mixColors(from, to, t): string

Defined in: packages/core/src/util/color.ts:99

The opaque colour t of the way from from to to (0 is from, 1 is to), mixed per sRGB channel, as #rrggbb. Opacity is ignored.

Parameters ​

from ​

string

to ​

string

t ​

number

Returns ​

string