Open bendavis78 opened 8 years ago
Seems like this should work: http://robotben.pencilcode.net/edit/p5test
background(255, 0, 0)
I get the error "background is not defined".
http://p5js.org/reference/#/p5/background
Actully, looks like you have to put it inside a draw() function, and it also needs to be defined on the window global (since coffeescript wraps everything in a closure).
draw()
window.draw = -> background(255, 0, 0)
Seems like this should work: http://robotben.pencilcode.net/edit/p5test
I get the error "background is not defined".
http://p5js.org/reference/#/p5/background