TemperatureCache

Design utilities using color temperature theory.

Analogous colors, complementary color, and cache to efficiently, lazily, generate data for calculations when needed.

Constructors

Link copied to clipboard
constructor(input: Hct)
Create a cache that allows calculation of ex.

Functions

Link copied to clipboard
5 colors that pair well with the input color.
open fun getAnalogousColors(count: Int, divisions: Int): List<Hct>
A set of colors with differing hues, equidistant in temperature.
Link copied to clipboard
open fun getComplement(): Hct
A color that complements the input color aesthetically.
Link copied to clipboard
Temperature relative to all colors with the same chroma and tone.
Link copied to clipboard
open fun rawTemperature(color: Hct): Double
Value representing cool-warm factor of a color.