vizzie scribblr

jaiserpe's icon

Painter.maxpat
text/plain 9.19 KB

Hi,

I'am using the Scribblr module programatically, i.e. using the X-Y inputs and not drawing directly using the mouse. How can one write dashed lines this way?

Thanks!

Max Gardener's icon

There's really not anything resembling an easy way to do it. You'd need to calculate each dashed portion as a separate line segment, and the fact that it's interrupted means you need to extend the previous line segment to where it *resumes* and then do the calculation again by choosing where the new segment ends, as well. That calculation also would need to take the size of the image into account as well. Ouch - it'll just be ugly. I wouldn't use the module to do it, myself.