Lines Matching defs:colors
25 @param colors The colors to be distributed along the gradient line
27 each corresponding color in the colors array. If this is null,
28 the the colors are distributed evenly along the gradient line.
32 int colors[], float positions[], TileMode tile) {
33 if (colors.length < 2) {
34 throw new IllegalArgumentException("needs >= 2 number of colors");
36 if (positions != null && colors.length != positions.length) {
39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt);
40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions,
61 int colors[], float positions[], int tileMode);
65 int colors[], float positions[], int tileMode);