# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Inherited Methods

# RadialGradient

`public class RadialGradient`
`` `extends Shader` ``

java.lang.Object
↳ | android.graphics.Shader
| ↳ | android.graphics.RadialGradient

## Summary

### Public constructors
`RadialGradient(float centerX, float centerY, float radius, int[] colors, float[] stops, Shader.TileMode tileMode)` Create a shader that draws a radial gradient given the center and radius.
`RadialGradient(float centerX, float centerY, float radius, long[] colors, float[] stops, Shader.TileMode tileMode)` Create a shader that draws a radial gradient given the center and radius.
`RadialGradient(float centerX, float centerY, float radius, int centerColor, int edgeColor, Shader.TileMode tileMode)` Create a shader that draws a radial gradient given the center and radius.
`RadialGradient(float centerX, float centerY, float radius, long centerColor, long edgeColor, Shader.TileMode tileMode)` Create a shader that draws a radial gradient given the center and radius.

### Inherited methods
From class `android.graphics.Shader`
`boolean` | `getLocalMatrix(Matrix localM)` Return true if the shader has a non-identity local matrix.
`void` | `setLocalMatrix(Matrix localM)` Set the shader's local matrix.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### RadialGradient

    public RadialGradient (float centerX,
                    float centerY,
                    float radius,
                    int[] colors,
                    float[] stops,
                    Shader.TileMode tileMode)

Create a shader that draws a radial gradient given the center and radius.

Parameters
`centerX` | `float`: The x-coordinate of the center of the radius
`centerY` | `float`: The y-coordinate of the center of the radius
`radius` | `float`: Must be positive. The radius of the circle for this gradient.
`colors` | `int`: The sRGB colors to be distributed between the center and edge of the circle This value cannot be `null`.
`stops` | `float`: May be `null`. Valid values are between `0.0f` and `1.0f`. The relative position of each corresponding color in the colors array. If `null`, colors are distributed evenly between the center and edge of the circle. This value may be `null`.
`tileMode` | `Shader.TileMode`: The Shader tiling mode This value cannot be `null`.

### RadialGradient

    public RadialGradient (float centerX,
                    float centerY,
                    float radius,
                    long[] colors,
                    float[] stops,
                    Shader.TileMode tileMode)

Create a shader that draws a radial gradient given the center and radius.

Parameters
`centerX` | `float`: The x-coordinate of the center of the radius
`centerY` | `float`: The y-coordinate of the center of the radius
`radius` | `float`: Must be positive. The radius of the circle for this gradient.
`colors` | `long`: The colors to be distributed between the center and edge of the circle This value cannot be `null`.
`stops` | `float`: May be `null`. Valid values are between `0.0f` and `1.0f`. The relative position of each corresponding color in the colors array. If `null`, colors are distributed evenly between the center and edge of the circle. This value may be `null`.
`tileMode` | `Shader.TileMode`: The Shader tiling mode This value cannot be `null`.

Throws
`IllegalArgumentException` | if there are less than two colors, the colors do not share the same `ColorSpace` or do not use a valid one, or `stops` is not `null` and has a different length from `colors`.

### RadialGradient

    public RadialGradient (float centerX,
                    float centerY,
                    float radius,
                    int centerColor,
                    int edgeColor,
                    Shader.TileMode tileMode)

Create a shader that draws a radial gradient given the center and radius.

Parameters
`centerX` | `float`: The x-coordinate of the center of the radius
`centerY` | `float`: The y-coordinate of the center of the radius
`radius` | `float`: Must be positive. The radius of the circle for this gradient
`centerColor` | `int`: The sRGB color at the center of the circle.
`edgeColor` | `int`: The sRGB color at the edge of the circle.
`tileMode` | `Shader.TileMode`: The Shader tiling mode This value cannot be `null`.

### RadialGradient

    public RadialGradient (float centerX,
                    float centerY,
                    float radius,
                    long centerColor,
                    long edgeColor,
                    Shader.TileMode tileMode)

Create a shader that draws a radial gradient given the center and radius.

Parameters
`centerX` | `float`: The x-coordinate of the center of the radius
`centerY` | `float`: The y-coordinate of the center of the radius
`radius` | `float`: Must be positive. The radius of the circle for this gradient
`centerColor` | `long`: The color at the center of the circle.
`edgeColor` | `long`: The color at the edge of the circle.
`tileMode` | `Shader.TileMode`: The Shader tiling mode This value cannot be `null`.

Throws
`IllegalArgumentException` | if the colors do not share the same `ColorSpace` or do not use a valid one.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*