HI,
can anyone help me to create a continuous stroke like as shown in this picture for a drawing application ? I have tried lines and ellipse nothing worked. I think it can only be possible using curves but I don't know where to start.
The line is not getting smoother it just getting thinner so I tried adding strokeWeight based on the X movement which revealed that strokes are not smooth :-??
Answers
Only thing I've got close is this online example: #-o
http://studio.processingtogether.com/sp/pad/export/ro.9ZSvPnI4AVjwR/latest
GoToLoop Thanks a lot :) You are the one who always help me in my eleventh hour :)
Can I make it smooth as shown in the picture ?
At the top, there's a constant called SCALE. Try changing that to 1. Dunno how smooth it's gonna get though! 8->
The line is not getting smoother it just getting thinner so I tried adding strokeWeight based on the X movement which revealed that strokes are not smooth :-??
Perhaps
smooth(4);
can help out a lil'? :-/More specifically ->
pg.smooth(4);
There're also strokeCap() & strokeJoin(). ~O)
no effect :( even I have tried smooth 20 both places in setup() and mouseMoved()