マガジンのカバー画像

まず100作るGenerative Art

200
自分が作ったGenerative Art作品のまとめです。 ソースコードも公開しています。
運営しているクリエイター

記事一覧

Generative Art #200

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop(); colorMode(HSB, 360, 100, 100, 100);}void draw() { background(255); tile(); noStroke(); fill(360); for (int i=0; i<20; i++) { float x = random(width); float y = random(heigh

Generative Art #199

Codeint[] colors = {#2364aa,#3da5d9,#73bfb8,#fec601,#ea7317};//int[] colors = {#008cc5,#33cccc,#f7fff7,#ff6b6b,#ffe66d};void setup() { size(800, 800); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(getCol()); tile()

Generative Art #198

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { background(0); noStroke(); for(int i=0; i<300000; i++){ float x = random(width); float y = random(height); float nScl = 0.004; float alph = noise(x*nScl,

Generative Art #197

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(0); tile();}void tile() { int c = int(random(5, 21)); float w = width/c; noStroke(); stroke(255); strokeWeight(1); for (int j=0; j<=c

Generative Art #196

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { background(255); rectRec(0, 0, width);}void rectRec(float x, float y, float s) { int c = int(random(2, 4)); float ss = s/c; for (int i=0; i<c; i++) { for (int j

Generative Art #195

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { background(getCol()); for (int i=0; i<10; i++) { color col = getCol(); stroke(col); fill(col); rectRec(50, 50, width-100); }}void rectRec(float x, float y

Generative Art #194

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { background(colors[3]); dots(); rectRec(50, 50, width-100); shuffleCol();}void dots() { int c = 100; float w = width/c; noStroke(); fill(colors[4]); for (int j=0;

Generative Art #193

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(23); tile();}void tile() { int c = 16; float w = width/c; noFill(); stroke(#FFF0F0); strokeWeight(1); for (int j=0; j<c; j++) { for

Generative Art #192

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { background(#D22E2C); for (int i=0; i<8; i++) { float x = random(width); float y = random(height); float s = random(100, 350); float alph = 255; noFill()

Generative Art #191

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(0); noStroke(); tile(); noiseSeed(int(random(10000)));}void tile() { int count = 20; float s = width/count; for (int j = 0; j < count

Generative Art #190

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop();}void draw() { ArrayList<PVector> forms = new ArrayList<PVector>(); int c = 80; float w = width/c; int cc = int(c*1.1); for (int j=0; j<cc; j++) { for (int i=0; i<cc; i++) {

Generative Art #189

Codevoid setup(){ size(800, 800); pixelDensity(2); noLoop();}void draw(){ background(30); bg(); noiseField(); noiseSeed(int(random(100000)));}void bg(){ noStroke(); for(int i=0; i<80000; i++){ float x = random(width); float y = random

Generative Art #187

再帰的に分割した矩形の中から一定の確率でピックし、立体的な表現を与える。 Happy coding!

Generative Art #186

CodeArrayList<PVector>points = new ArrayList<PVector>();void setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { points = new ArrayList<PVector>(); background(255); rectRec(10, 10, width-20, height-20, 6); node();}void rect