// キャンバスサイズ
size(400, 400);
// 背景色
background(#ffffee);
// 塗りつぶし色
fill(#d0d0f0);
// 画像はdataディレクトリに置いておく
PImage img = loadImage("sf2.jpg");
// 着色
tint(80, 120, 220, 158);
// 画像の表示
image(img, 50, 100);
// ファイル保存
save("sample1254a.png");
元画像(sf.jpg)

出力画像(sample1254a.png)

○動作環境
Processing 3.4/Processing 1.0.7
〇関連項目
Processingをインストールした仮想マシンを構築するには、以下のページを参照してください。
・https://serverarekore.blogspot.com/search/label/Processing
・Processingに関する他の記事は、こちらを参照してください。
No comments:
Post a Comment