PImage img;
float moza;
size(1386,1614);
img = loadImage("a.png");
background(0);
moza = 1;
image(img,0,0);
for (int i = 0; i < width; i += moza) {
for (int j = 0; j < height; j += moza) {
color c = img.get(i, j);
noStroke();
fill(red(c),blue(c),green(c));//ここを入れ替えたら色々できる
rect(i,j,moza,moza);
}
}
saveFrame("frame/out.png");
エディタをスクショしたものを使ったが、あんま映えない。
colorMode()をHSBでやるとよかったかな。