copyIndexedColorsInto

fun copyIndexedColorsInto(destination: IntArray, offset: Int = 0)

Copies the indexed palette into destination.

This is the allocation-free way for hosts to read the full palette.

Parameters

destination

destination array receiving 256 packed ARGB colors.

offset

first destination index to write.