差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
lecture:design_with_prototyping:p5.js編:11.ピクセル再構成 [2021/03/09 02:41] – [文字を単位にしてみる] baba | lecture:design_with_prototyping:p5.js編:11.ピクセル再構成 [2021/05/11 15:25] (現在) – [Sample04] baba | ||
---|---|---|---|
行 126: | 行 126: | ||
for (let j = 0; j < sample_image.width; | for (let j = 0; j < sample_image.width; | ||
let c = sample_image.get(j, | let c = sample_image.get(j, | ||
- | let gray = (blue(c)+green(c)+blue(c))/ | + | let gray = (red(c)+green(c)+blue(c))/ |
stroke(gray); | stroke(gray); | ||
point(j, i); | point(j, i); |