fill(r, g, b);
or
colorMode(HSB, max); // void setup 裡
fill(r, s, b); // void draw 裡
畫圓
ellipse( x, y, r, r);
1.當圓圈的半徑小於0時,隨機選擇一種顏色
2.使用HSB讓顏色會有漸層
3.位置會自動移動,但當圓圈的半徑小於0時,位置會重設
PImage 試圖片的資料型態
loadImage(圖片名字 or 網頁圖片URL);
image( 圖片, x, y. resize W, resize H);
4.把圖片大小設為(100, 100)
背景
background( r, g, b);
image( 圖片, x, y, W, H);
沒有留言:
張貼留言