class UI { constructor(width, height){ this.width = width; this.height = height; } drawWinView(){ fill('red'); textSize(50); let textX = lerp(this.width / 2 - 175, 20 * sin(frameCount/10), 0.2); let textY = lerp(this.height / 2, 20 * cos(frameCount/10), 0.2); let message = "👑 You Win! 👑" text(message, textX, textY); textX ++; textY ++; fill('yellow'); text(message, textX, textY); } }