RSDColorLibrary
public struct RSDColorLibrary : Codable, Equatable, Hashable, Comparable
A color library is a versioned collection of color swatches.
-
The version for this library.
Declaration
Swift
public var version: Int -
A gray scale for the color library.
Declaration
Swift
public var grayScale: RSDGrayScale? -
A list of all the color swatches included in this color library.
Declaration
Swift
public var swatches: Set<RSDColorSwatch> -
Get the color swatch associated with the given name.
Declaration
Swift
public func colorSwatch(for name: String) -> RSDColorSwatch? -
Get the color swatch associated with the given name.
Declaration
Swift
public func colorSwatch(for name: RSDReservedColorName) -> RSDColorSwatch? -
Declaration
Swift
public static func < (lhs: RSDColorLibrary, rhs: RSDColorLibrary) -> Bool
View on GitHub
RSDColorLibrary Structure Reference