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
   Information Visualization
(Moderators: forkinsocket, REAS)
   Wave
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Wave  (Read 846 times)
JohnG

WWW
Wave
« on: Jun 9th, 2004, 1:47pm »

Just a little sketch that I got into my head and decided ot make.
It's nothing spectacular, just shows a wave travelling through a field of polygons, which flip over and change colour as it passes.
 
http://www.hardcorepawn.com/PolyFlip/
 
The only interesting thing (I think) is the use of customised colour space.
I use HSB, to enable me to change the colour easily, based on the angle of the polygon, and set it's range to be 0..360 to make it map directly to the angles I'm using.
Also using S and B limited to 120, to mean I don't have to do any maths to work out the SB values based on X/Y coordinates.
 
« Last Edit: Jun 9th, 2004, 1:48pm by JohnG »  
kevinP

Email
Re: Wave
« Reply #1 on: Jun 9th, 2004, 2:28pm »

Sounds interesting, but for me, "Applet failed."
 
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
 
-K
 

Kevin Pfeiffer
JohnG

WWW
Re: Wave
« Reply #2 on: Jun 9th, 2004, 3:15pm »

How weird... I've only got:
 
Java(TM) Plug-in: Version 1.3.1_02
Using JRE version 1.3.1_02 Java HotSpot(TM) Client VM
 
And the applet version works fine...
 
What happens if you copy the source into porcessing and hit run?
« Last Edit: Jun 9th, 2004, 3:15pm by JohnG »  
kevinP

Email
Re: Wave
« Reply #3 on: Jun 9th, 2004, 9:55pm »

This evening it worked fine. I tried it in Processing with smooth() and noStroke() and liked it even more (or maybe it was just a fresh pov).
 
-K
 

Kevin Pfeiffer
Markavian

Markavian+iTX WWW
Re: Wave
« Reply #4 on: Jun 19th, 2004, 11:00pm »

Looks fine to me, looks pretty good too, 'so simple'.
 
Interesting that you locked the rotation (so you can't make it go around and around).
 
Regards,
- Markavian
 
Pages: 1 

« Previous topic | Next topic »