"Script Nou" - Processing

ID Autor Duplicat din Ultima modificare
#4105 Mitoiu Bogdan (bogdanpetru05) - Miercuri, 04 nov 2020, 18:03
x
 
1
function setup() {
2
    createCanvas(400, 400);
3
}
4
let x=1;
5
let y=1;
6
function draw() {
7
    x=x+1;
8
    y=y+2;
9
    fill("red");
10
    rect(x,y,200,200);
11
    fill("green");
12
    ellipse(x, y, 100,50);
13
    if(y>100)
14
      y=1;
15
}
16
Du-te sus!