0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

changed vertex number render fillstyle

This commit is contained in:
liabru 2015-04-24 00:24:20 +01:00
parent 74bc8ae4ba
commit bc8840673f

View file

@ -567,7 +567,7 @@ var Render = {};
for (k = parts.length > 1 ? 1 : 0; k < parts.length; k++) { for (k = parts.length > 1 ? 1 : 0; k < parts.length; k++) {
var part = parts[k]; var part = parts[k];
for (j = 0; j < part.vertices.length; j++) { for (j = 0; j < part.vertices.length; j++) {
c.fillStyle = 'yellow'; c.fillStyle = 'rgba(255,255,255,0.2)';
c.fillText(i + '_' + j, part.position.x + (part.vertices[j].x - part.position.x) * 0.8, part.position.y + (part.vertices[j].y - part.position.y) * 0.8); c.fillText(i + '_' + j, part.position.x + (part.vertices[j].x - part.position.x) * 0.8, part.position.y + (part.vertices[j].y - part.position.y) * 0.8);
} }
} }