Whoa, this is great! Thanks Jonathan!

Wouldn't adding the "-c" flag make a curved shape between each point?

On Sun, Oct 2, 2011 at 4:08 PM, Jonathan Wilkes <[email protected]> wrote:

> Here's a quick hack-- didn't check it for bugs.
>
> The real solution would be to add a "-c" flag to [plot] to draw the trace
> back to element 0:
>
> [plot -c etc.]
>
> And maybe "-f COLOR" to draw the trace back to element 0 and fill the
> inside.
> (Although that word probably be a bigger change.)
>
> -Jonathan
>
> ------------------------------
> *From:* Scott McCoid <[email protected]>
> *To:* [email protected]
> *Sent:* Sunday, October 2, 2011 2:13 PM
> *Subject:* [PD] Data structure array with last element pointing back to
> first element
>
> Hi,
>
> I've recently started playing around with Pd's data structures, and I need
> some help. It's relatively straightforward to create polygons and arrays of
> polygons. Though, I'd like to create a closed polygon, where each vertex is
> another data structure. I've attached a patch of what I have so far.
>
> I basically just want there to be another line to connect the 4th element
> of the array back to the first.
>
> Is it possible to use a [drawpolygon] object where each of the corners
> would be another data structure?
>
> Thanks!
>
> Scott
>
> _______________________________________________
> [email protected] mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to