Quartz provides two opaque data types for creating gradients—CGShadingRef and CGGradientRef. We can use either of these to create axial or radial gradients. A Gradient is a filling of color that varies from one color to another color.
There are main two types of gradients, that are as follows: 1. Axial Gradient: It is described by 2 points, different color is available at each point. All points that lie on a line perpendicular to the axis have the same color value. 2. Radial gradient: It is described by circle where one color available at centre and changes when moving towards the edges and gradient radius of circular sections are defined by the radii of the end circles. and the radius of each intermediate circle varies linearly from one end to the other.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Quartz provides two opaque data types for creating gradients—CGShadingRef and CGGradientRef. We can use either of these to create axial or radial gradients. A Gradient is a filling of color that varies from one color to another color.
There are main two types of gradients, that are as follows:
1. Axial Gradient: It is described by 2 points, different color is available at each point. All points that lie on a line perpendicular to the axis have the same color value.
2. Radial gradient: It is described by circle where one color available at centre and changes when moving towards the edges and gradient radius of circular sections are defined by the radii of the end circles. and the radius of each intermediate circle varies linearly from one end to the other.