Pour éviter la superposition de la forme comme dans #1.1 on insère juste un background() dans le void draw() !!
C’est minim mais ça change tout
|
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 |
//////////////////////////////////////////////////////////
///////////////////////// http://www.ebooki.fr ////////
////////////////////////////////////////////////////////////
void setup()
{
size(600, 360);
//background(100);// c'est ici !!
smooth();
}
void draw()
{
background(100);// c'est là !!
//ellipse rond
fill(0, 0, 255); // color rvb
strokeWeight(30); //
stroke(255,0,0); // color rvb
ellipse(mouseX, mouseY, 100, 100); //
//ligne
stroke(0, 255, 0);
line(mouseX-100,mouseY,mouseX+100,mouseY);
} |