Constructor and Description |
---|
SimplePalette(int[] palette) |
Modifier and Type | Method and Description |
---|---|
int |
getEntry(int index)
Looks up the color for a given palette index.
|
int |
getPaletteIndex(int rgb)
Looks up the palette index for a given color.
|
int |
length()
The number of entries in the palette.
|
public int getPaletteIndex(int rgb)
Palette
getPaletteIndex
in interface Palette
rgb
- the color to look uppublic int getEntry(int index)
Palette
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"