An utility to create polylines written in Haxe (ported from https://github.com/mattdesl/extrude-polyline ; preview image from original library)
var points:Array<Float> = [
25, 25,
15, 60
];
var stroke = new polyline.Stroke();
stroke.thickness = 5;
stroke.cap = BUTT;
stroke.join = MITER;
stroke.miterLimit = 10;
var vertices:Array<Float> = [];
var indices:Array<Int> = [];
stroke.build(points, vertices, indices);
trace('vertices: $vertices');
trace('indices: $indices');
MIT, see LICENSE.md for details.