We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › pjsBox - bookmarklet for running processing code
Page Index Toggle Pages: 1
pjsBox - bookmarklet for running processing code (Read 1616 times)
pjsBox - bookmarklet for running processing code
Mar 29th, 2010, 3:34pm
 
this is not done by me but this is pretty cool and i bet really useful for people who help a lot on this board. you can select any processing code ( not highlighted so far) use this bookmarklet and you get the running sketch without the need to start processing.

http://sanchothefat.com/labs/161/pjsbox
Re: pjsBox - bookmarklet for running processing code
Reply #1 - Mar 29th, 2010, 5:35pm
 
Thats amazing!
I didnt even know that was possible.
Re: pjsBox - bookmarklet for running processing code
Reply #2 - Mar 30th, 2010, 12:38am
 
This is awesome!

When you think of this and with Android for Processing and IPhone Processing.

The possibilities are endless.
Re: pjsBox - bookmarklet for running processing code
Reply #3 - Mar 30th, 2010, 1:08am
 
Only works with the Opera browser

Copy this code and save it as a .txt file. Open the same file in Opera
Edit-Select All and click the PJSBox bookmark from the menu and it works!

Code:

void setup(){
size(300,300);


background(233,23,23);
for (int x = 0;x<width;x++){
for (int y = 0;y<height;y++){
color c = color(height-y,x,x-y);

stroke(c);
point(x,y);
}
}


}

void draw(){

fill(color(height-mouseY,mouseX,mouseX-mouseY,12));
if (mousePressed)stroke(c);
if(!mousePressed)noStroke();
ellipse(mouseX,mouseY,40,40);



}


Re: pjsBox - bookmarklet for running processing code
Reply #4 - Apr 1st, 2010, 5:11am
 
You can have Processing BASIC sketches on the go!!!
Page Index Toggle Pages: 1