Extension:processingjs : Différence entre versions
De fablabo
(→exemple) |
(→donne :) |
||
Ligne 31 : | Ligne 31 : | ||
void draw(){ | void draw(){ | ||
background(0); | background(0); | ||
+ | ellipse( mouseX, mouseY, 100, 100 ); | ||
+ | } | ||
+ | |||
+ | </processingjs> | ||
+ | |||
+ | |||
+ | <processingjs> | ||
+ | void setup(){ | ||
+ | size( 200, 200 ); | ||
+ | strokeWeight( 10 ); | ||
+ | } | ||
+ | |||
+ | |||
+ | void draw(){ | ||
+ | background(200,20,10); | ||
ellipse( mouseX, mouseY, 100, 100 ); | ellipse( mouseX, mouseY, 100, 100 ); | ||
} | } | ||
</processingjs> | </processingjs> |
Version du 1 avril 2012 à 16:11
exemple
<processingjs>
void setup(){
size( 200, 200 ); strokeWeight( 10 );
}
void draw(){
background(0); ellipse( mouseX, mouseY, 100, 100 );
} </processingjs>
donne :
<processingjs> void setup(){
size( 200, 200 ); strokeWeight( 10 );
}
void draw(){
background(0); ellipse( mouseX, mouseY, 100, 100 );
}
</processingjs>
<processingjs>
void setup(){
size( 200, 200 ); strokeWeight( 10 );
}
void draw(){
background(200,20,10); ellipse( mouseX, mouseY, 100, 100 );
}
</processingjs>