RadialGradient

constructor(easing: Easing = EaseIn, center: Offset = Offset.Unspecified, centerIntensity: Float = 1.0f, radius: Float = Float.POSITIVE_INFINITY, radiusIntensity: Float = 0.0f)

Parameters

easing
  • The easing function to use when applying the effect. Defaults to a linear easing effect.

center

Center position of the radial gradient circle. If this is set to Offset.Unspecified then the center of the drawing area is used as the center for the radial gradient. Float.POSITIVE_INFINITY can be used for either Offset.x or Offset.y to indicate the far right or far bottom of the drawing area respectively.

centerIntensity
  • The intensity of the haze effect at the center, in the range 0f..1f.

radius

Radius for the radial gradient. Defaults to positive infinity to indicate the largest radius that can fit within the bounds of the drawing area.

radiusIntensity
  • The intensity of the haze effect at the radius, in the range 0f..1f