public class ColorGenerator extends Object
ColorGradient
. This is especially useful
when trying to get visually distinct colors and the number of colors is not
known a-priori.
The current implementation indexes into the ColorGradient
using the
following sequence (and allows for a max of ~1000 colors before wrapping):
0, 1, 0.5, 0.25, 0.75, 0.125, 0.375, 0.625, 0.875, 0.0625, ...
Constructor and Description |
---|
ColorGenerator()
Creates a new
ColorGenerator using the jet color gradient. |
ColorGenerator(ColorGradient colors)
Creates a new
ColorGenerator using the given ColorGradient . |
public ColorGenerator()
ColorGenerator
using the jet color gradient.public ColorGenerator(ColorGradient colors)
ColorGenerator
using the given ColorGradient
.Copyright © 2016 Metron, Inc.. All rights reserved.