fix for older browsers
This commit is contained in:
parent
9353ea6336
commit
83c9149c16
10
track.js
10
track.js
|
@ -114,7 +114,7 @@ function player(color, pos) {
|
||||||
ctx.fillStyle = color;
|
ctx.fillStyle = color;
|
||||||
|
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc(0, 0, rp, 0, tau);
|
ctx.arc(0, 0, rp, 0, tau, false);
|
||||||
ctx.closePath();
|
ctx.closePath();
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
ctx.stroke();
|
ctx.stroke();
|
||||||
|
@ -122,8 +122,8 @@ function player(color, pos) {
|
||||||
if (pos == PIVOT) {
|
if (pos == PIVOT) {
|
||||||
ctx.fillStyle = "#fff";
|
ctx.fillStyle = "#fff";
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc(0, 0, rp, tau*31/32, tau* 1/32);
|
ctx.arc(0, 0, rp, tau*31/32, tau* 1/32, false);
|
||||||
ctx.arc(0, 0, rp, tau*15/32, tau*17/32);
|
ctx.arc(0, 0, rp, tau*15/32, tau*17/32, false);
|
||||||
ctx.closePath();
|
ctx.closePath();
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
} else if (pos == JAMMER) {
|
} else if (pos == JAMMER) {
|
||||||
|
@ -152,8 +152,8 @@ function player(color, pos) {
|
||||||
|
|
||||||
function drawTrack(ctx) {
|
function drawTrack(ctx) {
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc( halflen, -offset, ro, tau*3/4, tau*1/4);
|
ctx.arc( halflen, -offset, ro, tau*3/4, tau*1/4, false);
|
||||||
ctx.arc(-halflen, offset, ro, tau*1/4, tau*3/4);
|
ctx.arc(-halflen, offset, ro, tau*1/4, tau*3/4, false);
|
||||||
ctx.lineTo( halflen, -offset - ro);
|
ctx.lineTo( halflen, -offset - ro);
|
||||||
ctx.moveTo( halflen, -ri);
|
ctx.moveTo( halflen, -ri);
|
||||||
ctx.lineTo(-halflen, -ri);
|
ctx.lineTo(-halflen, -ri);
|
||||||
|
|
Loading…
Reference in New Issue