When getting a categorical colour table, a user can set the range, e.g.
ColourTable.getPresetColourTable(ColourTable.PASTEL1_9, 0, 1);
Finding a colour, though, still uses the actual color index, and not the range.
So, trying to find one with e.g.
colourTablePastel.findColour(random(1));
only returns the first two.
Maybe you could map the value to the actual colour range, so it would still
allow to get the correct colour, e.g.
findColour(0.3) would get the 4th colour (for a table with 12 colours).
Original issue reported on code.google.com by
goo...@tillnagel.comon 20 Sep 2011 at 4:03