public class FullPaletteStrategy extends java.lang.Object implements ColourChoiceStrategy
| Constructor and Description |
|---|
FullPaletteStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
colour(int originalAlphaRgb,
int[] mostPopularRgbColours)
Method to return the RGB int colour (Spectrum colour) that should be
used for a given pixel based on the Spectrum colours
passed in as mostPopularColour and secondMostPopularColour.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int colour(int originalAlphaRgb,
int[] mostPopularRgbColours)
ColourChoiceStrategycolour in interface ColourChoiceStrategy