We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Beginner question, drawing smoky lines
Page Index Toggle Pages: 1
Beginner question, drawing smoky lines (Read 347 times)
Beginner question, drawing smoky lines
Aug 25th, 2008, 5:29pm
 
Hi im kinda new to processing and started i some weeks ago.
I would love to know how this work is done :

http://bodytag.org/esite/

i can tell its made by drawing alot of lines, but how?
is it a sin cos function? how does it work?

Thank you for your help. Jazz
Re: Beginner question, drawing smoky lines
Reply #1 - Sep 8th, 2008, 8:38am
 
I guess there must be something like this, but to get that movement we still should add some code.

float a=random(0,100);
float b=random(0,100);
float c=random(0,100);
float d=random(0,100);
void setup(){
 size(400,400);
 smooth();
 background(245);
}
void draw(){
strokeWeight(.2);
stroke(0,100);
noFill();
a++;
b++;
c++;
d++;
bezier(a,b,0,a,100,0,c,d);
translate(0.2,0);
}
Page Index Toggle Pages: 1