I am having troubles while migrating my processing code to processing.js. My processing code contains jars, images, fonts in data folder, I want to use same pde files that i have created in processing while migrating to processing.js. Processing.js tutorial shows how to include .pde files in web page but does not tell anything about Where to mention about images or jars in data folder in your web page. Also @preload for image is also not working.
hello.html –>
<html>
<title>Hello Web - Processing.js Test</title>
<script src="processing-1.3.6.js"></script>
<p> Processing.js Test</p>
<canvas data-processing-sources="hello/hello.pde"></canvas>
</html>
Quick migration strategy: