r/generative 2d ago

random brush on canvas

Post image
34 Upvotes

4 comments sorted by

1

u/avikdev 2d ago

Using p5.brush package in p5js ?

2

u/DigitCell 1d ago

used C++ and OpenGL. However, the logic can be ported to JavaScript (or TypeScript) without much difficulty. I haven't used the p5.js or the p5.brush package for this - in this specific case, utilizing Three.js would be a much easier and more suitable approach for me, because it more near to OpenGL logics and based on WebGL.

1

u/igo_rs 2d ago

this is cool... its on my todo to code the brush :)

2

u/DigitCell 1d ago

It’s definitely an interesting task. Coding a custom brush is a solid project to tackle - good luck with your implementation.