Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated readme

  • Loading branch information...
commit 1c34c4634cbdc21a175a78ad37447bdd23bde365 1 parent 65548f7
Levi Nunnink authored
13  README.markdown
Source Rendered
@@ -3,16 +3,7 @@ Smooth line UIView
3 3
 
4 4
 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. 
5 5
 
6  
-This view uses two methods of smoothing:
  6
+*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.
7 7
 
8  
-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…
9  
-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.
  8
+Many thanks to [Ginamin](http://stackoverflow.com/users/431480/ginamin) for his elegant solution.
10 9
 
11  
-### TODO
12  
-
13  
-* Still need to find the best threshold to switch to Bezier from Catmull Rom.
14  
-
15  
-### Examples
16  
-
17  
-* ![alt text](https://github.com/levinunnink/Smooth-Line-View/blob/master/Examples/examples/1.png?raw=true "Drawing")
18  
-* ![alt text](https://github.com/levinunnink/Smooth-Line-View/blob/master/Examples/examples/3.png?raw=true "Writing")
BIN  ...th Line View.xcodeproj/project.xcworkspace/xcuserdata/nunnikl.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown

0 notes on commit 1c34c46

Please sign in to comment.
Something went wrong with that request. Please try again.