マガジンのカバー画像

まず100作るGenerative Art

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

2019年7月の記事一覧

Generative Art #158

Codevoid setup() { size(840, 840); pixelDensity(2); noLoop();}void draw() { background(#404040); tileRec(10, 10, width-20, height-20);}void tileRec(float x_, float y_, float w_, float h_) { int tileCountW = (int)random(2, 4); int tileCoun

Generative Art #157

Codevoid setup() { size(840, 840); pixelDensity(2); noLoop();}void draw() { background(255); waves(); tile(0, 0, width);}void waves() { strokeWeight(2); for (float y=0; y<height*2; y+=100) { color c1 = getCol(), c2 = getCol(); for (fl

Generative Art #156

Codevoid setup() { size(900, 900); pixelDensity(2); //noLoop();}void draw() { background(#ffffff); tile(0, 0, width); saveFrame("output/####.png"); if (frameCount == 100)exit();}void tile(float x_, float y_, float w_) { int tileCount = (i

Generative Art #155

CodeArrayList<Particle> particles;ArrayList <PVector> points;void setup() { size(840, 840); pixelDensity(2); newParticles();}void draw() { background(20); for (Particle p : particles) { p.run(); }}void circles() { stroke(0); points = n

Generative Art #154

Codeint sAlph = 150;void setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { background(#D4E6F7); circles();}void circles() { int cx = width/2; int cy = height/2; ArrayList<PVector> points = new ArrayList<PVector>(); int c

Generative Art #153

Codeint[] colors = new int [7];void setup() { size(900, 900); pixelDensity(2); //noLoop();}void draw() { newColor(); background(getCol()); lines(); saveFrame("output/####.png"); if (frameCount == 60) { exit(); }}void lines() { for (in

Generative Art #152

Codevoid setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { background(#ffffff); ArrayList<PVector> quads = new ArrayList<PVector>(); quads.add(new PVector(10, 10, width-20)); int c = int(random(5, 50)); for (int i = 0; i

Generative Art #151

Codeint count = 4;void setup() { size(900, 900); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(#ffffff); squareRec(width/2, height/2, width-20, count); powder();}void powder() { for (int i = 0; i < 1000000; i ++) {

Generative Art #150

import java.util.*;ArrayList<Particle> particles;void setup() { size(900, 900); pixelDensity(2); newParticle();}void draw() { Iterator<Particle> it = particles.iterator(); while (it.hasNext()) { Particle p = it.next(); p.run(); if (

Generative Art #149

Codevoid setup() { size(800, 800); pixelDensity(2); noLoop(); colorMode(HSB, 360, 100, 100, 100);}void draw() { bg(); int c = 100; float s = width/c; for (int i = 0; i < c; i ++) { plant(i * s, height, s * 0.7); }}void plant(float x, fl

Generative Art #148

Codevoid setup() { size(900, 900); pixelDensity(2); noLoop();}void draw() { int c = 10; background(getCol()); lineRec(width*0.25, height*0.25, c); lineRec(width*0.75, height*0.25, c); lineRec(width*0.75, height*0.75, c); lineRec(width*0.2