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:
parent
74bc8ae4ba
commit
bc8840673f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue