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
   Tools
(Moderator: REAS)
   letter shaped particle systems
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: letter shaped particle systems  (Read 626 times)
sspboyd


letter shaped particle systems
« on: Sep 24th, 2004, 9:56pm »

I am trying to create a particle system that begins within the confines of a letter shape.  
I think I remember seeing something Charles Hinshaw had done that was similar but I cannot find the thread anymore.  
 
I want to have particles moving around within a letter shape and then at some point determined by user interaction have the particles 'released' from the shape of the letter and free to travel within the window.  
Any pointers or ideas?  
Thanks,
Steve
 

gmail.com w/ sspboyd username
rgovostes

rgovostes
Re: letter shaped particle systems
« Reply #1 on: Sep 24th, 2004, 10:33pm »

http://processing.org/learning/examples/custom_alphabet.html
 
mtr

WWW
Re: letter shaped particle systemsmade
« Reply #2 on: Sep 25th, 2004, 6:34pm »

Don't know if it's any help, but I made this one a few weeks ago: http://www.martinrees.com/sketchbook/sketch01.htm
 
forkinsocket

forkinsockt WWW
Re: letter shaped particle systems
« Reply #3 on: Nov 21st, 2004, 11:24am »

one way to do this:
 
1. create a gif or jpeg of the letter you'd like to start with. this gives you precise control of the form and typeface. be sure that the image is the same size as the processing canvas you plan to draw on. be sure you are designing with black type above white background.
 
2. import the image into your processing program but do not draw the image on screen.  
 
3. instead, loop through the pixels in the image. if there is a black pixel, take note of its (x, y) position and place a particle in the corresponding location on screen.
 
4. now all of your particles are intialised in the shape of the letterform composition you have designed.  
 
yippee. hope that helps.
 
ps. this is a pretty common idea. if you poke through flong.com, you will find an applet (from the late 1990s) that does something like this.
« Last Edit: Nov 21st, 2004, 11:24am by forkinsocket »  
Pages: 1 

« Previous topic | Next topic »