"bradut" - Processing

ID Autor Duplicat din Ultima modificare
#97 Bindiu Paul (BindiuPaul) - Luni, 13 iun 2016, 12:38
x
 
1
function setup() {
2
    createCanvas(400, 400);
3
    frameRate(2);
4
}
5
var n=3;
6
function glob(x, y)
7
{
8
    push();
9
    fill(random(0, 255), random(0, 255), random(0, 255));
10
    ellipse(x, y, 20, 20);
11
    pop();
12
}
13
14
function draw() {
15
    noStroke();
16
    fill("#b3b3ff");
17
    rect(0, 370, 400, 30);
18
    fill("#663300");
Du-te sus!