fixed font location

This commit is contained in:
2019-07-26 01:25:23 -05:00
parent ca4327e524
commit 8214cfa3a6
2 changed files with 8 additions and 14 deletions

View File

@@ -189,9 +189,9 @@ function drawWinnerCloseUp(ctx, width, height, horseSize, finalPlaces){
ctx.font = "40px Arial";
ctx.strokeStyle = '#000000';
ctx.lineWidth = 3;
ctx.strokeText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3)-60);
ctx.strokeText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3)+60);
ctx.fillStyle = '#ffffff';
ctx.fillText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3) - 60);
ctx.fillText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3) + 60);
ctx.lineWidth =1;
winnerTextCounter --;