Skip to content

surf:toPalette

CrazedProgrammer edited this page Apr 23, 2017 · 3 revisions

surf:toPalette(palette[, dither])

  • palette (palette)
    Colour palette
  • dither (bool)
    Whether the colours should be dithered

Converts a surface from RGB to the colour palette.
The dithering method is Floyd-Steinberg.
For further explanation on RGB and palettes, visit the Concepts page.

Clone this wiki locally