FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Beyond Categories
(Moderator: REAS)
   Menger Sponge
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Menger Sponge  (Read 750 times)
TomC
Guest
Email
Menger Sponge
« on: Sep 2nd, 2003, 2:10am »

Just a quick one.
 
http://www.tom-carden.co.uk/p5/menger/applet
 
Does anyone know if it's possible to draw flat shaded polygons?
 
OK, bedtime
 
rgovostes

rgovostes
Re: Menger Sponge
« Reply #1 on: Sep 2nd, 2003, 3:55am »

Nice. The keys don't seem to work for me, though?
 
I believe the BeginShape and EndShape stuff is for defining flat polygons. The RGB cube example uses them to generate a solid cube, I think.
 
TomC
Guest
Email
Re: Menger Sponge
« Reply #2 on: Sep 2nd, 2003, 9:53am »

I think you have to click on the applet to give it focus before the keys work.  Does that help?
 
I'll have a look at BeginShape / EndShape tonight, thanks.
 
TomC
Guest
Email
Re: Menger Sponge
« Reply #3 on: Sep 2nd, 2003, 12:14pm »

Oh, OK, so I had a look already...
 
http://www.tom-carden.co.uk/p5/menger_flat/applet/
 
beginShape/endShape did the trick, thanks!
 
Now for optimisation - eek!
 
rgovostes

rgovostes
Re: Menger Sponge
« Reply #4 on: Sep 2nd, 2003, 7:34pm »

Excellent.
 
I clicked on the applet and pressed 'p' and nothing happened. Tried the other keys too, and none of them work.
 
It must be my browser (OmniWeb), because when I tried it in Safari it worked properly.
 
TomC
Guest
Email
Re: Menger Sponge
« Reply #5 on: Sep 2nd, 2003, 8:55pm »

OK, maybe I'll add mouse control first then
 
TomC
Guest
Email
Re: Menger Sponge
« Reply #6 on: Sep 2nd, 2003, 11:57pm »

OK, now with mouse control.
 
http://www.tom-carden.co.uk/p5/menger_flat_mouse/applet
 
Pages: 1 

« Previous topic | Next topic »