2017 / 9 / 18
1. 介紹 Why互動技術、processing
2. 加入FB ( 2017互動技術 )
3. 第一個processing程式
4. 做出小畫家
開啟 Processing
設定字型大小 ( 可調大,才不會近視!)
* 調整視窗大小。
size(700 , 500) ;
可以移動滑鼠畫圖。
選好顏色後,可讓線條變色。
( 工具 -> 顏色選擇器 )
stroke(#B452B4);
線條粗細變化。
strokeWeight(7); ///數字7為改變粗細的大小
使用鍵盤數字鍵改變線條。
if(key=='1') {strokeWeight(8); stroke(#B452B4);}
if(key=='2') {strokeWeight(3); stroke(#78C933);}
沒有留言:
張貼留言