TemperatureCache

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.

Parameters

input

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.

Constructors

Link copied to clipboard
constructor(input: Hct)

Types

Link copied to clipboard
object Companion

Properties

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.

Functions

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.