I want to use a sketch written with PDE as a background to a webpage. Is this possible?
I tried using the sketch.pde file in this css code but no joy:
html {
background: url(sketch.pde) no-repeat center center fixed;
}
Update
I set the canvas up like this:
<canvas id="twit" data-processing-sources="twit.pde"
height="window.innerHeight-10"
width="window.innerWidth"
tabindex="0"
style="image-rendering">
</canvas>
And then refer to the canvas in the .css using the -moz-element:
{background: -moz-element(#twit) no-repeat;}