Readonlycolors: readonly Color[]Colours spread evenly from one end to the other.
Optional Readonlystops?: undefinedAbsent in this arm: give colors or stops, never both.
Optional Readonlycolors?: undefinedAbsent in this arm: give colors or stops, never both.
Readonlystops: readonly GradientStop[]Colours at chosen offsets, when even spacing is not what is wanted.
The colours a gradient runs through.
Two spellings, and exactly one of them:
colorsis v1's, a list spread evenly from the first to the last, andstopsplaces each colour itself. The even spread is arithmetic rather than a second wire shape — the scene holds offsets either way.