Name
QuantizeBrush -- reduce number of colors in brush (V6.0)
Synopsis
QuantizeBrush(id[, colors, dither])
Function
This function can be used to reduce colors in a brush. This is useful to create a retro palette-based-display look for your brush.

By default this function will reduce the colors to 256 with dithering enabled. You can change this behaviour by specifying the optional parameters. Note that the colors parameter must be a value between 1 and 256.

Inputs
id
identifier of the brush to quantize
colors
optional: desired number of colors for the brush (1-256)
dither
optional: True enables dithering, False disables dithering (defaults to True)
Example
QuantizeBrush(1, 32)
Convert brush 1 to a 32-color brush with dithering enabled

Show TOC