← back to roto on ba3a.dev

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.