8package org.skia.jetski;
10import androidx.annotation.Nullable;
11import java.lang.IllegalArgumentException;
16 @Nullable
Matrix localMatrix)
throws IllegalArgumentException {
17 super(colors,
pos, tm, localMatrix,
18 (c, p, t, m) -> nMakeLinear(x0, y0, x1, y1, c, p, t, m));
22 float[]
pos,
TileMode tm)
throws IllegalArgumentException {
23 this(x0, y0, x1, y1, colors,
pos, tm,
null);
26 public LinearGradient(
float x0,
float y0,
float x1,
float y1,
float[] colors,
28 @Nullable
Matrix localMatrix)
throws IllegalArgumentException {
29 super(colors,
pos, tm, localMatrix,
30 (c, p, t, m) -> nMakeLinear(x0, y0, x1, y1, c, p, t, m));
33 public LinearGradient(
float x0,
float y0,
float x1,
float y1,
float[] colors,
34 float[]
pos,
TileMode tm)
throws IllegalArgumentException {
35 this(x0, y0, x1, y1, colors,
pos, tm,
null);
38 private static native
long nMakeLinear(
float x0,
float y0,
float x1,
float y1,
39 float[] colors,
float[]
pos,
int tilemode,
40 long nativeLocalMatrix);
LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] pos, TileMode tm, @Nullable Matrix localMatrix)
LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] pos, TileMode tm)
LinearGradient(float x0, float y0, float x1, float y1, float[] colors, float[] pos, TileMode tm)
LinearGradient(float x0, float y0, float x1, float y1, float[] colors, float[] pos, TileMode tm, @Nullable Matrix localMatrix)