Expand description
Types and methods for handling color map operations.
Structs§
- Box0
- Represents a box of ColorMap pixels.
- BoxVector
- Represents a list of Box0.
- Color
Map - Represents a map of colors and pixels.
- Palette
Config - Groups palette configuration settings together.
- Tuple
Int - Variable-length container of ColorMap Samples.
Enums§
- Builtin
Dither - Built-in dither
- Lookup
Function - Matching enum for comparing a selected lookup function.
- Method
ForDiffuse - Method for diffusing
- Method
ForLargest - Method for finding the largest dimension for splitting, and sorting by that component.
- Method
ForRep - Method for choosing a color from the box
- Method
ForResampling - Method used for resampling
- Quality
Mode - Quality modes
Constants§
- PALETTE_
MAX - Maximum number of palette items.
Functions§
- compare_
plane - Sort TupleInt by item selected by the
global_compare_plane
parameter. - compute_
hash - Compute a hash for a Histogram.
- diffuse_
atkinson - Atkinson’s Method
- diffuse_
burkes - Burkes’ Method
- diffuse_
fs - Floyd-Steinberg Method
- diffuse_
jajuni - Jarvis, Judice & Ninks Method
- diffuse_
none - No-op diffuse function.
- diffuse_
stucki - Stucki’s Method
- error_
diffuse - Diffuses error energy to surrounding pixels.
- global_
compare_ plane - Gets the global comapre plane value.
- largest_
by_ luminosity - Gets the largest value by its luminosity.
- largest_
by_ norm - Gets the largest value by its normalized difference.
- lookup_
fast - Performs lookup for the closest color from palette using
"fast"
strategy. - lookup_
mono_ darkbg - Performs lookup for the closest color from mono dark background palette.
- lookup_
mono_ lightbg - Performs lookup for the closest color from mono light background palette.
- lookup_
none - No-op lookup function
- lookup_
normal - Performs lookup for the closest color from palette using
"normal"
strategy. - set_
global_ compare_ plane - Gets the global comapre plane value.
- sum_
compare - Sort BoxVector by sum.