Skip to content

Wiggle API / GradientStop

Type Alias: GradientStop

GradientStop = [number, Color] | { color: Color; offset: number; }

A gradient stop: a color at a position along the gradient. offset is 0...1. Given as [offset, color] or { offset, color }. The color may carry alpha (an 8-digit hex or an rgba color).