This link has been bookmarked by 17 people . It was first bookmarked on 13 Aug 2009, by Jody Foo.
-
17 Dec 11
-
21 Nov 11
-
29 Aug 11
-
21 May 11
-
08 Feb 11
-
import processing.core.PApplet; public class Stripe { float x; // horizontal location of stripe float speed; // speed of stripe float w; // width of stripe boolean mouse; // state of stripe (mouse is over or not?) PApplet parent; // The parent PApplet that we will render ourselves onto Stripe(PApplet p) { parent = p; x = 0; // All stripes start at 0 speed = parent.random(1); // All stripes have a random positive speed w = parent.random(10,30); mouse = false; } // Draw stripe void display() { parent.fill(255,100); parent.noStroke(); parent.rect(x,0,w,parent.height); } // Move stripe void move() { x += speed; if (x > parent.width+20) x = -20; } }
-
-
31 Jan 11
-
15 Dec 10Arvind s grover
how to have a debugger when using Processing requires Eclipse and some setups. Worth it? Perhaps.
-
22 Oct 10
-
05 Sep 10
-
25 May 10
-
02 May 10Fabian Astore
"PApplet parent; // The parent PApplet that we will render ourselves onto "
-
14 Sep 09Kenneth Priisholm
This tutorial assumes you already have Java and Processing installed on your computer. This is also not an Eclipse tutorial, but just covers the basics to get you up and running with Processing in Eclipse.
-
09 Sep 09
-
13 Aug 09
-
We might be tempted to have Stripe extend PApplet, but this would be a fatal error. A Stripe is not a PApplet
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.