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.
IndexDiscussionExhibition › Random Filling/Drawing
Page Index Toggle Pages: 1
Random Filling/Drawing (Read 733 times)
Random Filling/Drawing
Jun 4th, 2009, 3:46pm
 
I made my first little program I through together in 5 minutes just to get used to it. This language is pretty interesting. It reminds me of LOGO from my intro to programming class.

Here is my masterpiece:
Code:


void draw()
{
 for(int i=0; i<100; i++) {
   float r = random(500)*random(-1,1);
   curve(random(100), random(100), random(100), random(100), random(100), random(100), random(100), random(100));
   color c1 = color(random(102), random(102), random(102));
   fill(c1);
   noStroke();
   rect(random(100), random(100), random(100), random(100));

   float value = brightness((int)random(255));
   fill(value);
   rect(random(100), random(100), random(100), random(100));

   stroke(r*5);
   line(50, i, 50+r, i);
 }
}



I have a few questions:

What practical uses are there for Processing?

Can you embed a script into a webpage?
Re: Random Filling/Drawing
Reply #1 - Jun 5th, 2009, 12:49am
 
Random Thoughts wrote on Jun 4th, 2009, 3:46pm:
What practical uses are there for Processing

Can you embed a script into a webpage


1. Well the exhibition should give you some idea of what people have used it for...

2.  See 'Exporting and distributing your work' in Getting started
Re: Random Filling/Drawing
Reply #2 - Jun 5th, 2009, 4:56am
 
Quote:
What practical uses are there for Processing?


I use processing to test ideas and algorithms.

Its very nice to have a pre-built easy to use framework, that I can just jump straight in and start coding the 'fun' parts of my idea without being bogged down by message loops, window creations, etc

I am also a big fan of code created art (i.e demo scene, openprocessing.org, and the like), and processing does a brilliant job at this.
Page Index Toggle Pages: 1