public class ColorPoint
extends java.lang.Object
gradient function where it is used
Constructor and Description |
---|
ColorPoint(int color,
float position)
Constructor for ColorPoint
|
public ColorPoint(int color, float position)
color
- processing hex color like 0xFF00FF00 or color(255, 0, 0)position
- expected to be in the range [0, 1]more convenient way to create a ColorPoint.