![]() |
![]() |
Language \ Environment \ Comparison | ![]() |
![]() |
![]() |
Comparison Index \
ActionScript \
Lingo \ Python
\ Design By Numbers
Python developed by Guido Van Rossum. Python is used within community of typographers. It is often heralded as a teaching language. Python developed by Guido Van Rossum. Python is used within community of typographers. It is often heralded as a teaching language. No built in graphics library, but there are many external libraryies such as PyGame, etc... |
![]() |
![]() |
![]() |
|
![]() |
||
background(0); background(255); |
N/A | |
![]() |
||
background(255, 204, 0); | N/A | |
![]() |
||
stroke(255); stroke(0); |
N/A | |
![]() |
||
stroke(255, 204, 0); | N/A | |
![]() |
||
fill(0, 102, 153); | N/A |
![]() |
![]() |
|
![]() |
||
point(30, 20); |
N/A | |
![]() |
||
line(0, 20, 80, 20); | N/A | |
![]() |
||
rect(10, 20, 30, 30); | N/A |
![]() |
||
point(30, 20); | N/A | |
line(0, 20, 80, 20); | N/A | |
rect(10, 20, 30, 30); | N/A | |
![]() |
||
setPixel(30, 20, 255); | N/A | |
a = getPixel(60, 10); | N/A | |
pixels[y*width+x] | N/A | |
![]() |
||
Processing | Python | |
int x = 70; //
Initialize x = 30; // Change value |
x = 70 #
Initialize x = 30 # Change value |
|
float x = 70.0; x = 30.0; |
x = 70.0 x = 30.0 |
|
int[] a = {5, 10, 11}; a[0] = 12; // Reassign |
a = (5, 10, 11) a[0] = 12 # Reassign |
|
![]() |
||
Processing | Python | |
void loop() { // Statements } |
while 1: # Statements |
|
for(int a=45; a<=55; a++) { // Statements } |
for a in range(45, 55): # Statements |
|
if(c==1) { // Statements } |
if c == 1: # Statements |
|
if(c!=1) { // Statements } |
if c != 1: # Statements |
|
if(c < 1) { // Statements } |
if c < 1: # Statements |
|
if(c >= 1) { // Statements } |
if c >= 1: # Statements |
|
if((c >= 1) && (c < 20)) { // Statements } |
if c >= 1 and c < 20: # Statements |
|
if(c >= 20) { |
if c >= 20: # Statements elif x == 0: # Statements else: # Statements |
|
![]() |
||
Processing | Python | |
// Comment | # Comment | |
void doIt(int x) { // Statements } doIt(x); |
def doIt(x): # Statements doit(x) |
|
int square(int x) { return x*x; } square(X); |
def square(x): return x*x square(x) |
|
![]() |
||
Processing | Python | |
mouseX mouseY mousePressed |
N/A | |
void mousePressed() { // Statements } |
N/A | |
(key=='a') (key=='b') ... |
N/A | |
void keyPressed() { // Statements } |
N/A | |
hour() minute() second() |
N/A | |
![]() |
Processing / Python by REAS, Walter Aprile |
![]() |
||
![]() |
© 2002, 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea | ![]() |
![]() |
Processing is an open project initiated by Ben Fry and Casey Reas | ![]() |