"Happy Face" - Processing

ID Autor Duplicat din Ultima modificare
#8 Candale Silviu (silviu) - Duminica, 12 iun 2016, 23:16
x
 
1
function setup() {
2
    createCanvas(400, 400);
3
    noLoop();
4
}
5
6
function draw() {
7
    stroke("#F00");
8
    strokeWeight(5);
9
    //fata
10
    ellipse(200, 200, 100, 100)
11
    push();
12
    strokeWeight(12);
13
    stroke("#00A");
14
    //pupilele
15
    point(185,185);
16
    point(215,180);
17
    pop();
18
    //ochii
19
    noFill();
20
    ellipse(185,180,20,30);
21
    ellipse(215,180,20,30);
22
    //gura
23
    arc(200 , 210 , 50 ,50, 0 , PI);
24
    arc(200 , 210 , 50 ,30, 0 , PI);
25
    
26
}
Du-te sus!