Html – set different color on click function in Canvas
I want to change color our button are Press then canvas inside text color change. var canvas = document.querySelector('#my-canvas'); var context = canvas.getContext('2d'); context.font = '48px serif'; context.fillStyle = 'red'; // sets text color to red context.fillText('Example text', 20, 65);…