SweepGradientpublic class SweepGradient extends Shader
Constructors Summary |
---|
public SweepGradient(float cx, float cy, int[] colors, float[] positions)A subclass of Shader that draws a sweep gradient around a center point.
if (colors.length < 2) {
throw new IllegalArgumentException("needs >= 2 number of colors");
}
if (positions != null && colors.length != positions.length) {
throw new IllegalArgumentException(
"color and position arrays must be of equal length");
}
native_instance = nativeCreate1(cx, cy, colors, positions);
| public SweepGradient(float cx, float cy, int color0, int color1)A subclass of Shader that draws a sweep gradient around a center point.
native_instance = nativeCreate2(cx, cy, color0, color1);
|
|