互動技術概論🎮
第一個 Processing 程式
size(600,600);//(1)大小
background(#040E4D);
stroke(204,102,0);
strokeWeight(5);
//(2)顏色:被景色
rect(100,100, 400,400);//方塊
ellipse(200,300, 30,30);//橢圓
ellipse(400,300, 30,30);
rect(200,350, 200,100);
ellipse(300,400, 200,100);
size(600,600);
background(128);
fill(255);
noStroke();//臉
rect(100,100,400,400);
stroke(128);
strokeWeight(5);
ellipse(200,300, 30,30);//橢圓
ellipse(400,300, 30,30);
noStroke();
fill(#CC6600);
ellipse(300,400, 200,100);
stroke(255);
line(200,400,400,400);
沒有留言:
張貼留言