@zeplin/extension-model
    Preparing search index...

    Class ColorStop

    An interface to represent the color stops in a Gradient

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    color: Color

    Color used in the color stop.

    position: number

    Position of the color stop in a gradient. It should be in interval [0, 1]

    Accessors

    Methods

    • Creates a ColorStop instance from a JSON string

      Parameters

      • json: string

        JSON string representing a color stop

      Returns ColorStop

      A new ColorStop instance