how to smoothly fade the drawing I'm currently drawing?

Pierre Lemaire's icon

Hi everyone! I'm currently trying to use the face tracking to draw. And managed to make it work. But I'd like my drawing to fade as I draw.
The only solution I've found so far is to generate a background (opacity 40%) every few seconds to give the impressions that the drawing is fading. But the result is pretty jerky. There probably is another solution, isn't it?
Many thanks for your answers!

26_april_light.maxpat
Max Patch

Jean-Francois Charles's icon

One idea would be to draw with particles instead of jit.lcd: each particle fades out & die.

Jean-Francois Charles's icon

By the way, there are several problems in your patch. The jit.alphablend doesn't make sense as you use it, and the "route mouse..." part of the patch should probably be connected to the rightmost output of a [jit.window] or [jit.pwindow]. I would suggest you tackle the idea of the fading drawing/fading ink separately. When you have that work, add the jit.grad and face tracking part.

Jean-Francois Charles's icon

Try this, using feedback.

Max Patch
Copy patch and select New From Clipboard in Max.

Pierre Lemaire's icon

Oh, Jean-François, that helps me so much! Thanks a lot!
And thanks for your pieces of advice as well! I'll do this indeed.