GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing happycoding.io — Processing.js Processing.js
Previous:
Next:
Processing.jsNote: Processing.js is no longer actively maintained or recommended. You can learn more here. If embedding your sketch in a webpage is a priority, then consider using p5.js instead. This Processing.js tutorial will still work for now, but you should not count on it working forever. Processing lets you export applications, which gives you a runnable file. You can upload that file to a site like Game Jolt, itch.io, or even your own webpage, and then other people can download it and run the application to see your sketch. But exporting an application does not create a webpage that contains your sketch embedded directly in the page itself. You can create a webpage that links to the file for download, but it’s not embedded in the webpage directly. If you’re using Processing and you want to embed your sketch directly in a webpage, you might be able to use Processing.js! Processing.jsProcessing.js is a JavaScript library that lets you write Processing code that is then translated into JavaScript and embedded in a webpage. Processing.js won’t work if any of the following are true:
If any of the above are true, then you have to stick with the first approach of exporting applications. But if none of the above are true, then you can embed your Processing sketch in a webpage using Processing.js. You do this by following these steps:
It looks like this: Click here to view this HTML file in your browser. See this tutorial for instructions on working with Using HTML and JavaScript with Processing.jsThe above Click here to view this HTML file in your browser. This page contains a Processing sketch, as well as other HTML content and CSS styles. The Processing code (which is translated into JavaScript by Processing.js) uses JavaScript’s Uploading Processing.jsHere are a few sites that support Processing.js:
p5.jsLike I mentioned above, Processing.js is no longer maintained or recommended. It will still work for now, but if embedding your code in a browser is a priority for you, then I recommend learning more about p5.js! You can also read this tutorial for more info on the differences between the various versions of Processing:
Previous:
Next:
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |