processing.js as background in my website
in
Processing with Other Languages
•
9 months ago
Hi list, im trying to add a processing.js sketch as background into my website.
The problem is that when i add my processing.js it doesnt work as background with all my elements , just with a few.
For example in the following the when i add an image over the processing.js skettch it doesnt appear in front of my processing.js canvas. It appear first the image and in the left it appears the canvas.
Any idea how to solve this problem, how can i make to have my processing.js canvas all the time as canvas with all my elements?
here is the code:
The problem is that when i add my processing.js it doesnt work as background with all my elements , just with a few.
For example in the following the when i add an image over the processing.js skettch it doesnt appear in front of my processing.js canvas. It appear first the image and in the left it appears the canvas.
Any idea how to solve this problem, how can i make to have my processing.js canvas all the time as canvas with all my elements?
here is the code:
- <body>
<script src="processing.js"></script>
<canvas data-processing-sources="anything.pde"
style="z-index:0;"
</canvas>
<div id="logoHome" style="z-index:2;">
<img src="index_files/logo_home.png">
</div>
</body>
1