i wrote a script to draw a waveform which is bending along an array of points (a waveform along a gps tracklog)
currently its drawing a single line for each amplitude value, but now i'm trying to adapt the script so it draws one continuous line for the entire waveform.
the problem is i cannot simply set the points as vertexes and just use beginShape() and endShape() to connect them. the script uses translate() and rotate() to follow the array of points and draw the amplitude lines at the according angle:
now i'm looking for a workaround. the only idea i had so far was to calculate the absolute coordinates after each translate() and rotate() and save these to an array, and then actually draw the waveform using beginShape() / endShape() at the end of the script - but i couldn't figure out a way how that would work. so here i am, not sure how to continue... any help or suggestions would be much appreciated!