I needed a simple paint 2D tool for an upcoming demo and did this one using RenderTarget and Custom Shader. It’s quite simple and you can, of course, use it for your own projects.
The playground is available here : https://playground.babylonjs.com/#K26283#13
Have fun hacking it