我想将使用PDE编写的草图作为网页的背景。这可能吗? 我尝试使用这个CSS代码sketch.pde文件,但没有喜悦: html {
background: url(sketch.pde) no-repeat center center fixed;
}
更新 我设置画布像这样: <canvas id="twit" data-processing-sources="twit.pde"
h
我试图将数据发送到处理脚本。但由于某种原因,下面的变量pjs绑定到画布“competence1”并输入第一个if语句,但是bindJavascript(this)-call返回错误,但仅在Firefox中。 (完全在铬): [pjs.bindJavascript不是函数] var bound = false;
function initProcessing(){
var pjs =
所以,我一直在寻找Processing.js库/语言。我最近下载了它,不幸的是,它立即感到困惑。我只想看看我是否可以从我的Javascript代码中调用Processing.js函数和对象。这是我想要做的: var p = new Processing(document.getElementById("canvas"));
var orange = new p.color(204, 102,