class TemperatureCache(input: Hct)

Design utilities using color temperature theory.

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

Create a cache that allows calculation of ex. complementary and analogous colors.



Color to find complement/analogous colors of. Any colors will have the same tone, and chroma as the input color, modulo any restrictions due to the other hues having lower limits on chroma.


Link copied to clipboard
constructor(input: Hct)


Link copied to clipboard
object Companion


Link copied to clipboard

5 colors that pair well with the input color.

Link copied to clipboard

A color that complements the input color aesthetically.


Link copied to clipboard
fun getAnalogousColors(count: Int, divisions: Int): List<Hct>

A set of colors with differing hues, equidistant in temperature.

Link copied to clipboard

Temperature relative to all colors with the same chroma and tone.