Creates a shading object to use for axial shading.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The color space in which color values are expressed. Core Graphics retains this object; upon return, you may safely release it.
The starting point of the axis, in the shading's target coordinate space.
The ending point of the axis, in the shading's target coordinate space.
A CGFunction object created by the function
init(info:. This object refers to your function for creating an axial shading. Core Graphics retains this object; upon return, you may safely release it.
domain Dimension: domain: range Dimension: range: callbacks:)
A Boolean value that specifies whether to extend the shading beyond the starting point of the axis.
A Boolean value that specifies whether to extend the shading beyond the ending point of the axis.
A new Core Graphics axial shading. You are responsible for releasing this object using
An axial shading is a color blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. When you are ready to draw the shading, call the function