[PD-dev] Segmented Lines Question

Olaf Matthes olaf.matthes at gmx.de
Tue May 27 22:47:07 CEST 2003


jon.acker at easynet.co.uk schrieb:

> 3 Has anyone done any work on an ability to use segmented connecting lines,
> ala` Max?

I once did (for pd0.35, I think).

> If not, what do I need to know, in terms of how the PD code works, in
> order to implement such a feature?

Have a look at g_canvas.c (not 100% shure...), there is some code that draws the
connection between an outlet and the inlet. Just change the coordinates for the
single straight line to coordintes for three seperate lines. To make the segments
user moveable would be a bit more tricky.

Olaf





More information about the Pd-dev mailing list