I'm sure it'd be a lot more efficient to only add vertices at each ofxUIEnvelope "point", rather than adding a vertex for every pixel. The only reason I hadn't done this yet as I'm sure how to utilise the bezier function in ofPolyline to represent the ofxUIEnvelope's bezier curves :-/