palette

the palette object is used by the image library to apply quantized palettes using tail calls. There isnt much more use for it

apply_palette()applies the saved palette to the current screen and returns the texture object it originates from
get()returns a list with the palette colors
add(to_add)adds another palette to the current one
quantized(quantize_amount)quantizes the palette using a given amount (output colors are gonna be 2^quantize_amount)
apply_palette()Source

applies the saved palette to the current screen and returns the texture object it originates from

Returns

  1. texture the origin texture of this palette
get()Source

returns a list with the palette colors

Returns

  1. table a list of palette colors
add(to_add)Source

adds another palette to the current one

Parameters

  1. to_add palette palette object to add to this

Returns

  1. palette self. so these methods can be chain called
quantized(quantize_amount)Source

quantizes the palette using a given amount (output colors are gonna be 2^quantize_amount)

Parameters

  1. quantize_amount number quantization level

Returns

  1. palette self. so these methods can be chain called