Post Reply 
processing for noobs!
programming language
Author Message
michaelp
s0ny d0minator

Posts: 1,009.4190
Threads: 100
Joined: 19th Jan 2007
Reputation: -1.92737
E-Pigs: 12.5158
Offline
Post: #1
processing for noobs!
http://www.proce55ing.net/

Quote:Processing is an open source programming language and environment for people who want to program images, animation, and interactions. It is used by students, artists, designers, researchers, and hobbyists for learning, prototyping, and production. It is created to teach fundamentals of computer programming within a visual context and to serve as a software sketchbook and professional production tool. Processing is developed by artists and designers as an alternative to proprietary software tools in the same domain.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[java]
/**
* Mouse 2D.
* Processing Example
* Comments by Tony Targonski
*/

// initialize the environment
void setup()
{
// window size
size(200, 200);
// do not outline shapes
noStroke();
// RGB colour mode, 255 max colour, 100 max alpha
colorMode(RGB, 255, 255, 255, 100);
// draw Rectangles from the center, not (default) corner
rectMode(CENTER);
// set framerate to 30 FPS
frameRate(30);
}

// draw frame. Called once during each loop iteration
void draw()
{
// clear the background with 51/255 grey
background(51);
// set drawing colour to 255/255 grey, 80/100 alpha
fill(255, 80);
// draw two rectangles
rect(mouseX, height/2, mouseY/2+10, mouseY/2+10);
rect(width-mouseX, height/2, ((height-mouseY)/2)+10, ((height-mouseY)/2)+10);
}
[/java]


Seems like an easy language for drawing 2D animations on the screen. You also set the frame rate with a single function, which might be useful.


[Image: michaelp3.png]
25/02/2008 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
processing for noobs! - michaelp - 25/02/2008 06:48 PM
RE: processing for noobs! - ZiNgA BuRgA - 25/02/2008, 08:38 PM
RE: processing for noobs! - michaelp - 26/02/2008, 02:17 PM
RE: processing for noobs! - ZiNgA BuRgA - 27/02/2008, 02:05 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: