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
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #2
RE: processing for noobs!
This is Java?  If so, I wouldn't call it a "programming language" - Java would be the language here.

From the looks of it, it's more just wrappers for graphical operations, rather than any significant language changes.

Still, more friendly to beginners than existing libraries that I've seen, I guess.
25/02/2008 08:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
michaelp
s0ny d0minator

Posts: 1,009.4190
Threads: 100
Joined: 19th Jan 2007
Reputation: -1.92737
E-Pigs: 12.5158
Offline
Post: #3
RE: processing for noobs!
I got it from here (the code snippet) so that's why it has Java tags and that. Also why it says "Comments by Tony Targonski.

[Image: michaelp3.png]
26/02/2008 02:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #4
RE: processing for noobs!
Oh I see, it is based off Java.  They really shouldn't call it a "language" - it's really a library.
Thanks.
27/02/2008 02:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: