Skip to content
Snippets Groups Projects
Forked from Jonathan Wilkes / purr-data
Source project has a limited visibility.
  • Jonathan Wilkes's avatar
    4c1c5689
    add feature to "normalize" svg path data and pass it along as a FUDI message... · 4c1c5689
    Jonathan Wilkes authored
    add feature to "normalize" svg path data and pass it along as a FUDI message (e.g., "M0-2l3 4" becomes "M 0 -2 l 3 4")
    This gets triggered when the user include the "d=" and double quotes as the object args to [draw path].  So [draw path d="M0-2l3 4"] triggers a conversion to [draw path M 0 -2 l 3 4], whereas [draw path M0-2l3 4] does not. This is necessary because Pd lets the user include scalar fields inside path data, and we can't normalize that.
    4c1c5689
    History
    add feature to "normalize" svg path data and pass it along as a FUDI message...
    Jonathan Wilkes authored
    add feature to "normalize" svg path data and pass it along as a FUDI message (e.g., "M0-2l3 4" becomes "M 0 -2 l 3 4")
    This gets triggered when the user include the "d=" and double quotes as the object args to [draw path].  So [draw path d="M0-2l3 4"] triggers a conversion to [draw path M 0 -2 l 3 4], whereas [draw path M0-2l3 4] does not. This is necessary because Pd lets the user include scalar fields inside path data, and we can't normalize that.