Skip to content

jernejstrasner/Smooth-Gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smooth gradients on iOS using CGShading

First, compare the two images below:

Smooth Regular

The first one is drawn using the class published here (JSTGradientView) with a slope factor of 2, the second one is drawn using a linear CGGradient. Guess which one designers usually draw in Photoshop? Yep, the first one.

Check out the code and comments for more.

About

How to draw a smooth gradient on OSX and iOS using CGShading

Resources

License

Stars

Watchers

Forks

Packages

No packages published