-
Notifications
You must be signed in to change notification settings - Fork 2
PaletteFactory
sirrandalot edited this page Mar 12, 2018
·
2 revisions
PaletteFactory contains static classes for creating Palettes.
- Creates a Palette using an integer array of colours.
- Creates a pre-defined Palette using a PalettePredef enum value.
- Returns a Palette based on a BufferedImage and the number of colours to use.
- Each pixel in the image, read from (0, 0) counts for one colour in the palette.