Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jernejstrasner committed Jul 28, 2015
1 parent 6b593fe commit 23aede8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Using CGShading to create a smooth gradient
## Smooth gradients on iOS using CGShading

[http://jernejstrasner.com/ios/osx/objc/graphics/2014/01/08/smooth-gradients-ios.html](http://jernejstrasner.com/ios/osx/objc/graphics/2014/01/08/smooth-gradients-ios.html)
First, compare the two images below:

![Smooth](http://jernejstrasner.com/images/2013-10-17/gradient_ps.png) ![Regular](http://jernejstrasner.com/images/2013-10-17/gradient_cg.png)

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.

0 comments on commit 23aede8

Please sign in to comment.