Permalink
Browse files

Updated readme

  • Loading branch information...
1 parent 65548f7 commit 1c34c4634cbdc21a175a78ad37447bdd23bde365 @levinunnink committed Feb 7, 2012
View
@@ -3,16 +3,7 @@ Smooth line UIView
The goal of this project is to create a UIView that can generate smooth lines from touch input in a reasonably fast manner without moving to a more complex framework like OpenGL.
-This view uses two methods of smoothing:
+*Update:* Completely re-written smooth line algorithm to use native CGContext quadratic curves. The result is much faster and smoother drawing. There's no more need for switching between agorithms.
-1. **Catmull Rom spline:** (Shows in red.) This seems to have the best results as far as curve smoothing. However it gets _really_ slow over a certain number of points. So I switch interpolation methods to the following for more complex curves…
-2. **Bezier Interpolation:** (Shows in green.) This method is very fast and doesn't care how complex the path is. The view uses some math to calculate the control points. The results aren't as good as the Catmull Rom but _much_ faster and with more complex shapes the differences are hard to notice.
+Many thanks to [Ginamin](http://stackoverflow.com/users/431480/ginamin) for his elegant solution.
-### TODO
-
-* Still need to find the best threshold to switch to Bezier from Catmull Rom.
-
-### Examples
-
-* ![alt text](https://github.com/levinunnink/Smooth-Line-View/blob/master/Examples/examples/1.png?raw=true "Drawing")
-* ![alt text](https://github.com/levinunnink/Smooth-Line-View/blob/master/Examples/examples/3.png?raw=true "Writing")

0 comments on commit 1c34c46

Please sign in to comment.