2021-09-11から1日間の記事一覧
int row = 256; //rowとclnをいじる。rowは1024の約数にする int cln = 8; int ma = new int[row][cln]; int mb = new int[cln][cln]; int mc = new int[cln][row]; int mp = new int[row][row]; float cell_size; int repeat = 1; int mass_cell_size; bool…
int row = 20; int cln = 4; int ma = new int[row][cln]; int mb = new int[cln][cln]; int mc = new int[cln][row]; int mp = new int[row][row]; float cell_size; int repeat = 10; int mass_cell_size; void setup(){ size(1024,1024); noStroke(); cel…
//二次元セル・オートマトン mod変更で模様変えられる int num = 128; int mod = 8; int state = new int[num][num]; int g_black = color(0); void setup(){ frameRate(10); size(1024,1024); background(g_black); colorMode(HSB,100); initializeState();…