meo-canvas
    Preparing search index...

    Type Alias GradientRamp

    GradientRamp:
        | { colors: readonly Color[]; stops?: undefined }
        | { colors?: undefined; stops: readonly GradientStop[] }

    The colours a gradient runs through.

    Two spellings, and exactly one of them: colors is v1's, a list spread evenly from the first to the last, and stops places each colour itself. The even spread is arithmetic rather than a second wire shape — the scene holds offsets either way.

    Type Declaration

    • { colors: readonly Color[]; stops?: undefined }
      • Readonlycolors: readonly Color[]

        Colours spread evenly from one end to the other.

      • Optional Readonlystops?: undefined

        Absent in this arm: give colors or stops, never both.

    • { colors?: undefined; stops: readonly GradientStop[] }
      • Optional Readonlycolors?: undefined

        Absent in this arm: give colors or stops, never both.

      • Readonlystops: readonly GradientStop[]

        Colours at chosen offsets, when even spacing is not what is wanted.