// ... [previous code remains the same] // Set the font, text color to red, and write the text in the middle ctx.font = '20px Arial'; ctx.textAlign = 'center'; ctx.fillStyle = 'red'; // Changed the text color to red ctx.fillText(randomMessage, scratchPad.width / 2, scratchPad.height / 2 + 10); // ... [rest of the code remains the same]