GradientStop

class GradientStop

A gradient stop stores information used by a gradient to determine how to transition between colors.

  • The gradient stop’s position along the gradient. The position is a number between 0 and 1, where 0 and 1 represent the ‘start’ and ‘end’ of the gradient respectively. A position of 0.5 refers to the gradient’s mid point.

    Declaration

    var position: Double { get }
  • The of color the gradient at that position.

    Declaration

    var color: Color { get }
  • The object’s description

    Declaration

    var description: String { get }