But none of those examples had the hand-made feel I was aiming for recently in a particular project. So I decided to make my own stroke that resembled an artist's paint brush. Here's what I ended up with:
The rendering time is very reasonable, and the implementation is surprisingly simple: just trace the path several times with a thin stroke, each stroke being a little bit offset to the path itself.
OK, it is a little bit more complicated than that, but that's the basic concept. I'm sure there's still room for improvement, but here is the current release of the BrushStroke class. I'd love some feedback. Or comments.

Hi.
ReplyDeleteI was searching for an idea to implement a stroke in Processing (a Java derivative) and stumbled on yr page. Great idea to implement it!
Alex, Italy