Home | History | Annotate | Download | only in graphics

Lines Matching refs:radius

24      * Create a shader that draws a radial gradient given the center and radius.
26 * @param x The x-coordinate of the center of the radius
27 * @param y The y-coordinate of the center of the radius
28 * @param radius Must be positive. The radius of the circle for this
37 public RadialGradient(float x, float y, float radius, int colors[], float positions[],
40 if (radius <= 0) {
41 throw new IllegalArgumentException("radius must be > 0");
44 mPaint = new RadialGradientPaint(x, y, radius, mColors, mPositions, tile);
48 * Create a shader that draws a radial gradient given the center and radius.
50 * @param x The x-coordinate of the center of the radius
51 * @param y The y-coordinate of the center of the radius
52 * @param radius Must be positive. The radius of the circle for this
58 public RadialGradient(float x, float y, float radius, int color0, int color1, TileMode tile) {
59 this(x, y, radius, new int[] { color0, color1 }, null /* positions */, tile);
73 public RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) {
77 mRadius = radius;