Package util
Class ColorStream
java.lang.Object
util.ColorStream
Generate a stream of `random' saturated RGB colors with all colors being
maximally distinct from each other.
- Author:
- Stephan Saalfeld >saalfeld@mpi-cbg.de<, Tobias Pietzsch >tobias.pietzsch@gmail.com<
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final double[]protected static final doubleprotected static final double[]protected static final double[]protected static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final intargb(int r, int g, int b) static final intget(long index) protected static final intinterpolate(double[] xs, int k, int l, double u, double v) static final Iterator<net.imglib2.type.numeric.ARGBType> iterator()static final intnext()
-
Field Details
-
goldenRatio
protected static final double goldenRatio -
stepSize
protected static final double stepSize -
rs
protected static final double[] rs -
gs
protected static final double[] gs -
bs
protected static final double[] bs
-
-
Constructor Details
-
ColorStream
public ColorStream()
-
-
Method Details
-
interpolate
protected static final int interpolate(double[] xs, int k, int l, double u, double v) -
argb
protected static final int argb(int r, int g, int b) -
get
public static final int get(long index) -
next
public static final int next() -
iterator
-