#include <palette.h>
Public Member Functions | |
| Palette () | |
| Palette (const String &name_) | |
| Palette (const Surface &surface, int size=256) | |
| iterator | find_closest (const Color &color, float *dist=0) |
| const_iterator | find_closest (const Color &color, float *dist=0) const |
| iterator | find_heavy () |
| iterator | find_light () |
| void | save_to_file (const synfig::String &filename) const |
Static Public Member Functions | |
| static Palette | grayscale (int steps=16) |
| static Palette | load_from_file (const synfig::String &filename) |
|
|
|
|
|
|
|
||||||||||||
|
Generates a palette for the given surface |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6