Appearance
anim-format (runtime format) / gradientUnitRatio
Function: gradientUnitRatio()
ts
function gradientUnitRatio(
g,
x,
y
): number;The colour offset at a point of unit gradient space, before spread (the editor's gradientRatioUnit, same maths).
Parameters
| Parameter | Type |
|---|---|
g | Pick<AnimGradient, "type" | "focal"> |
x | number |
y | number |
Returns
number