I would like to make a pencil stroke in an iPhone application, which can draw lines such as you can see in this picture:
Can anybody show me how I could implement these types of stroke?
I would like to make a pencil stroke in an iPhone application, which can draw lines such as you can see in this picture:
Can anybody show me how I could implement these types of stroke?
There are no built-in functions for drawing this kind of stroke. You will have to come up with your own texture image and draw it repeatedly along the path. There are no built-in functions for getting points along a path either.
There are different ways to obtain what you're looking for... Probably the best solution (and more complicated) is using OpenGL ES.
Try to take a look at this sample code: http://developer.apple.com/library/ios/#samplecode/GLPaint/Introduction/Intro.html