These are chat archives for pixijs/pixi.js

31st
Jul 2015
Fábio Azevedo
@naso
Jul 31 2015 21:38
Hey guys! Trying to use earcut, but struggling.
vertices = [520, 138, 920, 138, 920, 238, 520, 238, 320, 188]
earcut(vertices) returns [3, 4, 0, 0, 1, 2, 2, 3, 0]
I don't quite get those numbers. I was more expecting the coordinates of each vertice of each triangle.