Creating a brush texture

Hi, sorry I didn’t clarify that: the brush that I’m talking about is this one.
It’s like a bristle brush.

I don’t have any code yet, because I don’t know if this is even possible to make in Processing. Anyways, I’m asking for some idea to begin to create the texture of the brush, not a complete code or something like that.

Screenshot_1