So...I've been publishing some applications I've made in Processing. They required a lot of processing power to run all at once, so now I've made links to the application and code instead.
Here's a way to do that (step 3-5 is only done once to set things up for running the scripts):
- Press Ctrl+E to export your application - a folder called "applet" is created automatically in the same folder your processing file is located - the file with a ".jar" extention is the one you'll use online
- Upload you processing file and the .jar file to www.box.net or your own webserver
- Download processing.txt (right click and save target as)
- Rename the file to processing.php (needed .txt extention to be able to download)
- Upload the .php file to the same location as your processing file on box.net or other
- Make a link to the location of your processing file for viewing the code
- Link to the application from you blog by making a link like this:
http://www.ostmo.com/_filer/aho/processing/
processing.php?file=_1_2_a_b&x=400&y=600
- "http://www.ostmo.com/_filer/aho/processing/" is the address to my files online
- "_1_2_a_b" is the name of my processing file without the extention .pde
- "400" is the width of the application (x)
- "600" is the height of the application (y)
- these variables are modified to fit your application
- use the link tool in the blogger editor to create a link
- If you want the link to open in a new window, you'll have to choose the "Edit Html" tab on the top right of the editor, find you link starting like this:
'a href="http://...'
and change it to
'a target="_blank" href="http://...'
the 'target="_blank"' attribute within the link tag opens a new window when the link is clicked
Good luck and good night!!