Currently, I am working on a checkers project where the first step is to create the initial board. The way we are currently implementing this has raised a philosophical concern. We are using the fillRect
function to define the color of the "dark" squares after setting the color of the light squares when initializing the board.
My main issue with this approach is that the colors are hardcoded in the JavaScript code, and I would prefer to define them in the accompanying CSS. Is there a way to specify the colors used for drawing the canvas in CSS?