posterize

fun Bitmap32.posterize(nbits: Int = 4): Bitmap32