TonalPalette

A convenience class for retrieving colors that are constant in hue and chroma, but vary in tone.

Parameters

hue

The hue of the Tonal Palette, in HCT. Ranges from 0 to 360.

chroma

The chroma of the Tonal Palette, in HCT. Ranges from 0 to ~130 (for sRGB gamut).

keyColor

The key color is the first tone, starting from T50, that matches the palette's chroma.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val hue: Double
Link copied to clipboard

Functions

Link copied to clipboard
fun getHct(tone: Double): Hct

Given a tone, use hue and chroma of palette to create a color, and return it as HCT.

Link copied to clipboard
fun tone(tone: Int): Int

Create an ARGB color with HCT hue and chroma of this Tones instance, and the provided HCT tone.