Skip to content

Categorical colour tables can be accessed only via actual index #10

@GoogleCodeExporter

Description

@GoogleCodeExporter
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.com on 20 Sep 2011 at 4:03

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions