Skip to content

anim-format (runtime format) / gradientSpreadRatio

Function: gradientSpreadRatio() ​

ts
function gradientSpreadRatio(t, g): number;

An offset after the gradient's spread, in 0..1. Radial gradients have no "repeat" (it reads as pad).

Parameters ​

ParameterType
tnumber
gPick<AnimGradient, "type" | "spread">

Returns ​

number

HereSplash — 2D animation for the web