diff --git a/static/js/background_anim.js b/static/js/background_anim.js index 2a78cb654729b107d0f02f349a98d8d5a0caff11..a948502cc926594c118c4d336db9e27deb1b2554 100644 --- a/static/js/background_anim.js +++ b/static/js/background_anim.js @@ -192,9 +192,12 @@ const drawConnectingLines = () => { const drawDebugText = () => { for(let dot of dots) { + let vx = Math.round((dot.vx + Number.EPSILON) * 100) / 100 + let vy = Math.round((dot.vy + Number.EPSILON) * 100) / 100 ctx.beginPath(); ctx.font = "15px Arial"; - ctx.fillText(`${dot.vx}/${dot.vy}`,dot.x,dot.y); + ctx.fillStyle = "#fff"; + ctx.fillText(`${vx}/${vy}`,dot.x,dot.y); ctx.closePath(); } };