3D LED RGB Cube Laying Screen Display H48 Dance
2.程式碼
size(500,500); PImage rody; rody = loadImage(" http://profile.ak.fbcdn.net/hprofile-ak-ash3/162020_108764849163248_4953921_n.jpg "); image(rody, 20,20);
3.作業
(1)小畫家圖
(2)processing
(3)程式碼
void setup(){ size(340, 390); background(255); smooth(); } void draw(){ beginShape(); line(35,193,168,16); line(310,179,168,16); line(35,193,51,222); line(310,179,297,211); line(169,59,297,211); line(169,59,51,222); line(77,193,90,313); line(254,313,90,313); line(254,313,272,192); line(117,87,117,22); line(82,30,117,22); line(82,30,92,123); line(110,155,234,155); line(110,155,118,260); line(224,260,234,155); line(224,260,118,260); line(119,162,166,161); line(167,249,166,161); line(167,249,123,253); line(119,162,123,253); line(177,161,224,162); line(220,250,224,162); line(220,250,174,250); line(177,161,174,250); line(103,260,175,300); line(246,260,175,300); endShape(); }
4.心得 第一次上互動技術的課,很有趣 收穫很多 程式碼原來可以這麼不複雜
如果能填色就更棒了~
回覆刪除85分 助教