JSFiddle - React, Tailwind, and code Playground
HTML
<p>Click the truck to change the wavy logo color</p>
<canvas id="canvas1" width=500 height=253></canvas>
<canvas id="canvas2" width=500 height=253></canvas>
CSS
body {
background-color: ivory;
padding:20px;
}
canvas {
border:1px solid red;
position: absolute
}
JavaScript
ctx1=canvas1.getContext("2d")
ctx2=canvas2.getContext("2d")
ctx1.fillStyle="red"
ctx2.fillStyle="blue"
ctx2.globalAlpha=0.3
ctx1.fillRect(0, 0, 30, 30)
ctx2.fillRect(0, 0, 50, 50)