Closed AnasQiblawi closed 1 year ago
I was thinking about this for a while 😅
How about we just define the color in CSS, Instead of checking and re-drawing the Background color in canvas every time update() is called,
update()
so the script only call it once we change the color.
This way, we might also improve performance a little bit.
I was thinking about this for a while 😅
How about we just define the color in CSS, Instead of checking and re-drawing the Background color in canvas every time
update()
is called,so the script only call it once we change the color.
This way, we might also improve performance a little bit.