fromRadialGradient

fun fromRadialGradient(width: Int, height: Int, density: Float, inner: Color, outer: Color): Image

Creates an image with a radial gradient between two colors.

Return

An Image object representing the created radial gradient image.

Parameters

width

The width of the image.

height

The height of the image.

density

The density of the gradient.

inner

The inner color of the gradient.

outer

The outer color of the gradient.