Definition
public struct Definition<Unt> where Unt : Dimension
Describes Individual contour bound and color.
-
Bound measurement value.
Declaration
Swift
public var value: Measurement<Unt>
-
Contour fill color.
If this property is unspecified, the contour is colored gray. If this property is not specified for any contour, the contours are rainbow-colored.
Declaration
Swift
public var color: Color?
-
Initializes new contour Definition.
Declaration
Swift
public init(value: Measurement<Unt>, color: Color? = nil)
-
Initializes new contour Definition.
Convenience initializer for encapsulating
Measurement
initialization.Declaration
Swift
public init(value: Double, unit: Unt, color: Color? = nil)