TemperatureCache

Sealed Class
Design utilities using color temperature theory. Analogous colors, complementary color, and cache to efficiently, lazily, generate data for calculations when needed.

Properties

Coldest: Hct
Complement: Hct
A color that complements the input color aesthetically.
HctsByHue: List<Hct>
HCTs for all hues, with the same chroma/tone as the input. Sorted ascending, hue 0 to 360.
HctsByTemp: List<Hct>
HCTs for all hues, with the same chroma/tone as the input. Sorted from coldest first to warmest last.
Input: Hct
InputRelativeTemperature: double
Relative temperature of the input color.
TempsByHct: Dictionary<Hct,double>
A map with keys of HCTs in HctsByTemp, values of raw temperature.
Warmest: Hct

Constructors

TemperatureCache(input: Hct)

Static Methods

IsBetween(angle: double, a: double, b: double): bool
Determines if an angle is between two other angles, rotating clockwise.
RawTemperature(color: Hct): double
Value representing cool-warm factor of a color. Values below 0 are considered cool, above 0 warm.

Instance Methods

Analogous(count: int, divisions: int): List<Hct>
A set of colors with differing hues, equidistant in temperature.
RelativeTemperature(hct: Hct): double
Temperature relative to all colors with the same chroma and tone. Value on a scale from 0 to 1.

Inherited Members

Extension Methods

DescribeIdentityShortHashToStringNullable

On this page