Contenu connexe
Similaire à P5utda day1 (20)
P5utda day1
- 2. Day 1 - Welcome to Processing!
本日の内容
1. 何ができるんですか?
2. Processingをインストール
3. ウィンドウのサイズ
4. 簡単な図形
5. 色
Processing WS, by R.ISHIHARA / Kuma Lab.
- 5. 2. Processingをインストール
Download and install
ググれ↓
"processing"
windowsの人 ≫
解凍したものをまるっと¥C¥Program Filesにぶちこむ
macの人 ≫
おなじくアプリケーションフォルダに投入
暇な人はExhibitionをチェック!
Processing WS, by R.ISHIHARA / Kuma Lab.
- 9. 5. 色
表示の色を変えたい
01 size(400,400);//大きさ400x400pixelのウィンドウ作成
02 //colorMode(HSB);
03 //colorMode(RGB,200,200,100);
04 background(20);
05 //グレースケールで0=黒,100=白.255(2^8-1)でカウンターストップ
06
07 fill(100,0,0);
08 noStroke();
09 rect(0,0,50,50);
10
11 stroke(0,100,100);
12 noFill();
13 rect(200,0,50,50);
14
15 //background(0);
16
17 stroke(0,0,100);
18 fill(0,50,100);
19 rect(0,200,50,50);
20
21 fill(100,100,100);
22 rect(200,200,50,50);
Processing WS, by R.ISHIHARA / Kuma Lab.