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
- texture the origin texture of this palette
- get()Source
returns a list with the palette colors
Returns
- table a list of palette colors
- add(to_add)Source
adds another palette to the current one
Parameters
- to_add palette palette object to add to this
Returns
- 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
- quantize_amount number quantization level
Returns
- palette self. so these methods can be chain called