@tiesvdam I don't think you can get rid of it, I solved it by painting the path in a panel, and removing the "extra line" parts by manipulating the path string
The moving ball is from the envelope floating tile but the rest is a painted panel
it involves converting the path to string - remove certain strings - convert it back
I hope there is a better way to do it, but I don't know if there is any.
Anybody knows how to do it in a less cumbersome way?
this is part of the string manipulation, p is the path
var a = p.toString().split(" ");
var ax = parseInt(a[6]);
var ay = parseInt(a[7]);
var acx = parseInt(a[4]);
var acy = parseInt(a[5]);
var dx = ax + (parseInt(a[14])-ax)*0.95;
var dy = parseInt(a[15]);
var sx = parseInt(a[17]);
var sy = parseInt(a[13]);
var rx = parseInt(a[22]);
var ry = this.getHeight()-3;
var str = a.join("\n");
var path = Content.createPath();
path.fromString(str);
g.setColour(Colours.chartreuse);
g.drawPath(path, path.getBounds(1), 1.0);
paintedahdsr.gif