Gradient

class Gradient

A color gradient represented as an array of color stops, each having a parametric location value.

  • property documentation (update this)

    Declaration

    var from: Point { get }
  • to

    property documentation (update this)

    Declaration

    var to: Point { get }
  • property documentation (update this)

    Declaration

    var caGradientLayerEndPoint: Point { get }
  • property documentation (update this)

    Declaration

    var type: String { get }
  • property documentation (update this)

    Declaration

    var stops: Array { get }
  • property documentation (update this)

    Declaration

    var radius: Double { get }
  • property documentation (update this)

    Declaration

    var ellipseAspectRatio: Double { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Gradient) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.