lib
Toggle table of contents
1.14.0+1.0.47-sesl9+rev13
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
lib
lib
/
com.google.android.material.color.utilities
/
PointProvider
Point
Provider
@
RestrictTo
(
value
=
LIBRARY_GROUP
)
interface
PointProvider
An interface to allow use of different color spaces by quantizers.
Inheritors
PointProviderLab
Members
Functions
distance
Link copied to clipboard
abstract
fun
distance
(
a
:
Array
<
Double
>
,
b
:
Array
<
Double
>
)
:
Double
Squared distance between two colors.
from
Int
Link copied to clipboard
abstract
fun
fromInt
(
argb
:
Int
)
:
Array
<
Double
>
The four components in the color space of an sRGB color.
to
Int
Link copied to clipboard
abstract
fun
toInt
(
point
:
Array
<
Double
>
)
:
Int
The ARGB (i.e.