Skip to content

addGradientStop beta ​

Function of @v12-engine/editor

ts
export declare function addGradientStop(stops: readonly GradientStop[], t?: number): {
    stops: GradientStop[];
    index: number;
};

A stop added in the widest gap, of the colour the gradient is there: the stops after, and where it is among them