Coloring

public enum Coloring
extension Coloring: Encodable
extension Coloring: ExpressibleByIntegerLiteral
extension Coloring: ExpressibleByArrayLiteral

Constant or variable coloring of a property.

  • Coloring by a single, constant color.

    Declaration

    Swift

    case constant(_: Color)
  • Variable coloring specified by the provided collection of colors.

    Declaration

    Swift

    case variable(_: [Color])
  • Coloring by numerical values with colors derived from the associated ColorScale.

    Declaration

    Swift

    case colorScale(_: [Double])
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(integerLiteral integer: UInt32)
  • Declaration

    Swift

    public init(arrayLiteral values: Double...)