views:

92

answers:

4

I know how to draw straight lines but could I draw a line which http://img163.imageshack.us/img163/2320/path3003.png (around a straight line i.e.)?

Excuse me, I do not speak English very well to describe this more detailed ;-)

Edit: Hey sorry for my late answer - you are right, it should be something like a sine wave which "vericulates" and looks like a worm "coiling" (right word?) around a simple spline/curve (drawn by the user).

The "Noise" version looks a bit too random.

The wave should look like this image.

+4  A: 

why not draw a sine wave?

atk
A: 

Java 2D examples of splines can be found at http://ibiblio.org/e-notes/Splines/Intro.htm

msw
A: 

Perhaps PerlinNoise, but applied to a line for a hand-drawn look (see 'Drawing sketched lines' on this page...?

Dave Everitt
A: 

Hey sorry for my late answer - you are right, it should be something like a sine wave which "vericulates" and looks like a worm "coiling" (right word?) around a simple spline/curve (drawn by the user).

The "Noise" version looks a bit too random.

The wave should look like this: Image

Alex007
This information should be an update to your question. I've moved it so you can delete this answer.
trashgod