夜景とおんなのこ
function setup() {
createCanvas(600, 600);
background(0,0,139);
}
function draw() {
//おんなのこ
//頭
strokeWeight(0.1);
stroke(160,82,45);
noFill();
ellipse(300,480,random(50,0),50)
stroke(1);
noFill();
ellipse(300,480,random(50,0),50)
//首
stroke(250,235,215);
line(random(290,310),505,random(290,310),515);
//服(上)
stroke(255);
rect(290,515,random(0,20),40);
triangle(random(275,290),random(515,525),290,525,290,555);
triangle(random(310,325),random(515,525),310,525,310,555);
//服(下)
rect(290,555,random(0,20),40);
triangle(random(265,290),random(585,595),290,555,290,595);
triangle(random(310,335),random(585,595),310,555,310,595);
//足
stroke(250,235,215);
line(random(285,300),595,random(285,300),600);
stroke(250,235,215);
line(random(300,315),595,random(300,315),600);
//空
noStroke();
fill(255,255,0);
ellipse(random(0,600),random(0,600),random(1,3));
}