processing.js loading external files

后端 未结 4 1087
旧巷少年郎
旧巷少年郎 2021-01-15 13:06

I want to split my processing.js code into several files but I\'m not sure how. I tried doing



        
4条回答
  •  执笔经年
    2021-01-15 13:42

    You can initialize Processing with a canvas and a string of source in JS.

    Processing(canvas, sourceString)

    That string could come from anywhere outside the current file.

提交回复
热议问题