DEFINE GRADIENT COLOR IN IOS.

Tarun Kumar

Total Post:107

Points:535
Posted by  Tarun Kumar
 692  View(s)
Ratings:
Rate this:
  1. Tarun Kumar

    Post:107

    Points:535
    Define Gradient color in iOS.

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!