change(player): change trail color

This commit is contained in:
nick-delirium 2023-04-26 13:18:39 +02:00
parent f57cc13cd1
commit 3124913980

View file

@ -101,7 +101,7 @@ export default class MouseTrail {
const spreadRate = LINE_WIDTH_START * (1 - inc);
this.context.lineJoin = 'round';
this.context.lineWidth = spreadRate;
this.context.strokeStyle = `rgb(255, ${Math.floor(200 - 255 * dec)}, ${Math.floor(200 - 255 * inc)})`
this.context.strokeStyle = `rgba(60, 170, 170, ${dec})`
this.context.beginPath();
this.context.moveTo(lastPoint.x, lastPoint.y);