← back to roto on ba3a.dev
roto-core
Toggle table of contents
0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
roto-core
roto-core
/
com.roto.core.palette
/
PaletteQuantiser
/
nearest
nearest
fun
nearest
(
argb
:
Int
,
palette
:
Palette
)
:
Int
The colour of
palette
nearest to
argb
in OKLab, the first on a tie. Alpha is not compared.