browse OpenProcessing

DISTANCIA ENMARA&ADA
We are Pixels
Black Starfish
browse all>

browse the portfolio of Giovanni Carlo Mingati

jb
letterExtruder
typo mishap
3D editable text
see more>
We are Pixels

We are Pixels

uploaded by
Giovanni Carlo Mingati
A text made of moving Particles. Press the key 'A' to create the words "Hello World. We are Pixels."
Mouse click to move Particles to another place.
Embed Code
Fave'd by 21 users
Sketch added to your favorites in your portfolio.
You must login/register to add this sketch to your favorites.

comments

source code

Comments

Giovanni Carlo Mingati
20 Feb 2009, 08:34
now i have an idea on how to get colors and positions of pre-existing pixels. In this example, a static text is created in the first half of the screen, it has a value of 1 for alpha, so it is invisible to the eyes. Then, for every color that is not -1 (white) i get teh x and y coords.
By subtracting the original coordinates (+ the offset along the y axes) to the actual coords of each Particle, we can move them to the desired position.
I should investigate on how to create such text with live input (you write, the app creates and move the Particles accordingly)...
Myer Nore
20 Feb 2009, 10:58
Interesting - that's the collision detection hack mentioned on the Processing "hacks" page, right? A word processor with that kind of effect could be very interesting, especially for live coding commands to some kind of sound performance.
Giovanni Carlo Mingati
23 Feb 2009, 02:55
No Myer, there's no collision detection. Each particle is simply constantly moved to a new coord(x,y) with a setAcceleration method.
They go back and forth around this new point in relation with their mass. The heavier the mass, the more continuous is its motion, the lighter the mass, the quicker they stops.
Giovanni Carlo Mingati
23 Feb 2009, 02:56
Sinan, there's something to check with the new layout ;-)
Metin Saray
23 Feb 2009, 14:56
Very nice particles, i learned so much from that..

But i didn't get what part of code makes the particles get the shape of text, and how?
Metin Saray
23 Feb 2009, 15:26
And hey!
I'm looking forward for your investigation on the live input text, i really wonder how would that happen,

thanks again!
Giovanni Carlo Mingati
26 Feb 2009, 08:41
here's a first version of the live input
http://www.openprocessing.org/visuals/?visualID=1085

Giovanni Carlo Mingati
28 May 2009, 09:42
sorry, correct url is:
http://www.openprocessing.org/visuals/?visualID=1116
You need to login/register to comment.