SESL Material
Toggle table of contents
1.12.0+1.0.31-sesl8+rev0
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
SESL Material
SESL Material
/
com.google.android.material.color.utilities
/
TonalPalette
Tonal
Palette
@
RestrictTo
(
value
=
LIBRARY_GROUP
)
class
TonalPalette
A convenience class for retrieving colors that are constant in hue and chroma, but vary in tone.
Members
Properties
chroma
Link copied to clipboard
open
val
chroma
:
Double
hue
Link copied to clipboard
open
val
hue
:
Double
key
Color
Link copied to clipboard
open
val
keyColor
:
Hct
Functions
from
Hct
Link copied to clipboard
open
fun
fromHct
(
hct
:
Hct
)
:
TonalPalette
Create tones using a HCT color.
from
Hue
And
Chroma
Link copied to clipboard
open
fun
fromHueAndChroma
(
hue
:
Double
,
chroma
:
Double
)
:
TonalPalette
Create tones from a defined HCT hue and chroma.
from
Int
Link copied to clipboard
open
fun
fromInt
(
argb
:
Int
)
:
TonalPalette
Create tones using the HCT hue and chroma from a color.
get
Hct
Link copied to clipboard
open
fun
getHct
(
tone
:
Double
)
:
Hct
Given a tone, use hue and chroma of palette to create a color, and return it as HCT.
tone
Link copied to clipboard
open
fun
tone
(
tone
:
Int
)
:
Int
Create an ARGB color with HCT hue and chroma of this Tones instance, and the provided HCT tone.