javascript - Ocanvas creation inquiry -


i'm still little fuzzy on ocanvas, i'm new it. know it's not best choice or documented, have potential job depends on me learning it.

i wondering ocanvas.create(); should placed. right have function called main(); in html head , html body runs every time body loops. seems ocanvas.create(); works if place in main(); function, creating canvas every time body loops?

can explain bit more 'every time body loops'? have settimeout/setinterval/requestanimationframe runs main many times? in case, run ocanvas.create outside of main , access inside main when needed.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -