マガジンのカバー画像

まず100作るGenerative Art

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

2019年8月の記事一覧

Generative Art #169

CodeArrayList<Form>form = new ArrayList<Form>();void setup() { size(800, 800, OPENGL); pixelDensity(2); rectMode(CENTER); newForm();}void draw() { background(255); camera(width*0.5, height*1.1, width*0.6, width*0.5, height*0.7, 0, 0, 1, 0);

Generative Art #168

CodeArrayList<Form>form = new ArrayList<Form>();float a = 0;void setup() { size(800, 800, OPENGL); pixelDensity(2); rectMode(CENTER); newForm();}void draw() { background(0); camera(width*0.5, height*1.1, width*0.6, width*0.5, height*0.65, 0

Generative Art #167

Codeint act = (int)random(10000);float t = 0;ArrayList<Form>form;void setup() { size(800, 800, OPENGL); pixelDensity(2); rectMode(CENTER); newForm();}void draw() { randomSeed(act); background(0); camera(width*0.5, height*1.1, width*0.5, wi

Generative Art #166

Codeint actRandomSeed = (int)random(10000);float t = 0;float st = 0;void setup() { size(900, 900, OPENGL); pixelDensity(2); rectMode(CENTER);}void draw() { randomSeed(actRandomSeed); background(255); push(); translate(width/2, (height/2) -

Generative Art #165

Codevoid setup(){ size(800, 800); pixelDensity(2); noLoop();}void draw(){ ArrayList<PVector>points = new ArrayList<PVector>(); float maxl = 80; background(0); for (int i=0; i<200; i++) { float x = random(width), y= random(height); flo

Generative Art #164

Codevoid setup() { size(900, 900); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(getCol()); for (int i=0; i<2; i++) { fill(0, 26); noStroke(); rect(width/2, height/2, width, height); tile(0, 0, width-1); }

Generative Art #163

Codevoid setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { background(255); tile(); for (int i=0; i<20; i++) { fill(getCol()); circle(random(width), random(height), random(1, 12)); myCurve(); }}void tile() { int cou

Generative Art #162

Codevoid setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { background(getCol()); noStroke(); for (int i=0; i<1000; i++) { fill(getCol()); noiseCircle(random(width), random(height), random(10, 100)); noiseSeed(int(ra

Generative Art #161

Codevoid setup() { size(1800, 1800); //noLoop();}void draw() { background(255); form(); save("generation.png"); PImage img = loadImage("generation.png"); ArrayList<PImage> piece = new ArrayList<PImage>(); int wCount = int(random(2, 10));

Generative Art #160

Codeimport java.util.*;ArrayList<Particle> particles;int n = 120;void setup() { size(900, 900); pixelDensity(2); generate();}void draw() { Iterator<Particle> it = particles.iterator(); while (it.hasNext()) { Particle p = it.next(); p.

Generative Art #159

Codevoid setup() { size(900, 900, P2D); pixelDensity(2); smooth(8); rectMode(CENTER);}void draw() { background(0); tile(0, 0, width); noiseFilter(); if (frameCount > 20)exit(); saveFrame("output/####.png");}void form(float x, float y, fl