"Cercuri colorate - copie" - Processing

ID Autor Duplicat din Ultima modificare
#168 Vaida Adrian Gabriel (adrianvaidaclient) Cercuri colorate Marti, 14 iun 2016, 09:04
x
 
1
function setup() {
2
    createCanvas(400, 400);
3
    frameRate(1);
4
}
5
6
function draw() {
7
    background(255);
8
    
9
    var dim = 90;
10
    var x = 100, y = 100;
11
    fill(random(0,255), random(255), random(0,255));
12
    ellipse(x , y , dim, dim);
13
    
14
    x += 100;
15
    fill(random(0,255), random(255), random(0,255));
16
    ellipse(x , y , dim, dim);
17
    
18
    x += 100;
Du-te sus!