Open futurist opened 6 years ago
Each time call the main function, that will create a canvas using createCanvas()
canvas
createCanvas()
Can set a context canvas as global, and re-use that one canvas for all later call?
context
I feel nervous having a stateful gobal around, but it seeeems like that shouldn't be a problem?
Each time call the main function, that will create a
canvas
usingcreateCanvas()
Can set a
context
canvas as global, and re-use that one canvas for all later call?