ArtLayer.posterize

void posterize (int levels)

Parameters

levels The tonal levels. Range: 2 to 255.

Description

Specifies the number of tonal levels for each channel and then maps pixels to the closest matching level.