Paints a gradient fill that varies along the area defined by the provided starting and ending circles.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
A graphics context.
A CGGradient object.
The coordinate that defines the center of the starting circle.
The radius of the starting circle.
The coordinate that defines the center of the ending circle.
The radius of the ending circle.
The color at location 0 in the CGGradient object is mapped to the circle defined by
start. The color at location 1 in the CGGradient object is mapped to the circle defined by
end. Colors are linearly interpolated between the starting and ending circles based on the location values of the gradient. The option flags control whether the gradient is drawn before the start point or after the end point.