LinearGradient

Class of android.graphics · LinearGradient.java · Android's reference

public class LinearGradient extends Shader

LinearGradient ← Shader

A gradient along a line.

Constructors

public LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions, TileMode tile) source
public LinearGradient(float x0, float y0, float x1, float y1, long[] colors, float[] positions, TileMode tile) source
public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, TileMode tile) source
public LinearGradient(float x0, float y0, float x1, float y1, long color0, long color1, TileMode tile) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.