meta données pour cette page
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 |
void setup() { size( 640 , 480 ); frameRate( 20 ); // 20 images par secondes (fps) //fullScreen(); // Pour mettre votre zone de dessin en plein écran background( 0 ); } void draw() { clear(); fill( 127 , 227 , 0 ); // textSize( 24 ); text( "hello là!" , 450 , 350 ); noStroke(); rect(mouseX,mouseY, 200 , 200 ); // un rectangle fill( 0 , 255 , 200 ); //for(int i = 0; i < 500; i++) { //} ellipse(frameCount, 400 , 100 , 100 ); stroke( 255 , 0 , 0 ); line( 100 , 100 , 200 , 500 ); if (frameCount > 640 ) { frameCount = 0 ; } } |