Created
June 24, 2021 02:12
-
-
Save o-nnerb/060d07ec03127186cab23bd2af0b911e to your computer and use it in GitHub Desktop.
The ColorScale provider that describes the color intensity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct ColorScale<Color: ColorType>: ColorProvider { | |
public var lighttest: Color { | |
transformHandler("lighttest") | |
} | |
public var light: Color { | |
transformHandler("light") | |
} | |
public var medium: Color { | |
transformHandler("medium") | |
} | |
public var dark: Color { | |
transformHandler("dark") | |
} | |
public var darkest: Color { | |
transformHandler("darkest") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment