1
我想将使用PDE编写的草图作为网页的背景。这可能吗?使用草图作为背景的processing.js
我尝试使用这个CSS代码sketch.pde文件,但没有喜悦:
html {
background: url(sketch.pde) no-repeat center center fixed;
}
更新
我设置画布像这样:
<canvas id="twit" data-processing-sources="twit.pde"
height="window.innerHeight-10"
width="window.innerWidth"
tabindex="0"
style="image-rendering">
</canvas>
而且然后使用-moz-element参考.css中的画布:
{background: -moz-element(#twit) no-repeat;}
谢谢麻雀。你让我走上正轨。我已经破解了它!原始问题中的代码 – 2012-03-10 01:00:27