マガジンのカバー画像

まず100作るGenerative Art

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

2019年6月の記事一覧

Generative Art #147

CodeArrayList<Particle> particles;int n = 2000;void setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); newParticles();}void draw() { for(Particle p: particles){ p.run(); }}void newParticles() { particles = n

Generative Art #146

Codeimport java.util.*;ArrayList<Particle> particles;int n = 120;void setup() { size(900, 900); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); rectMode(CENTER); newParticles();}void draw() { Iterator<Particle> it = particles.iterato

Generative Art #145

float noiseStep = 0.03;int[] colors = {#292F36, #4ECDC4, #F7FFF7, #FF6B6B, #FFE66D, #1470DE, #FA4444};//int[] colors = {#44af69, #f8333c, #fcab10, #2b9eb3, #db2bc9, #ffffff};void setup() { size(840, 840); pixelDensity(2); noLoop();}void d

Generative Art #144

CodeForm[] form = new Form[1000];//int[] colors = {#b8b8d1, #5b5f97, #ffc145, #fffffb, #ff6b6c};int[] colors = {#586ba4, #324376, #f5dd90, #f68e5f, #f76c5e};float minS = 5, maxS = 40;void setup() { size(900, 900); pixelDensity(2); noLoop(

Generative Art #143

Codeint c = 5;void setup() { size(900, 900); pixelDensity(2); noLoop(); colorMode(HSB, 360, 100, 100, 100); rectMode(CENTER); noStroke();}void draw() { noStroke(); background(#ffffff); squareRec(width/2, height/2, width, c); powder();}voi

Generative Art #142

CodeForm[] form = new Form[50];//int[] colors = {#540d6e, #ee4266, #ffd23f, #3bceac, #0ead69};int[] colors = {#f61067 ,#3626a7 ,#657ed4 ,#ff331f ,#fbfbff};void setup() { size(900, 900); pixelDensity(2); newForm();}void draw() { for (int i

Generative Art #141

Codeint count = 4;void setup() { size(840, 840); pixelDensity(2); noLoop(); rectMode(CENTER);}void draw() { background(#ffffff); squareRec(width/2, height/2, width, count);}void squareRec(float x, float y, float s, int n) { stroke(50); st

Generative Art #140

CodeArrayList<Particle> particles;int num = 200;//int[] colors = {#58355e ,#e03616 ,#fff689 ,#cfffb0 ,#5998c5};int[] colors = {#ed9e1e ,#d13247 ,#00c6e5 ,#4ea3e8 ,#00a1f2};void setup() { size(900, 900); pixelDensity(2); colorMode(HSB, 360

Generative Art #139

Codevoid setup() { size(840, 840); pixelDensity(2); noLoop();}void draw() { background(#5160A7); generate(); powder();}void generate() { align(width/2, height*0.1, width); push(); translate(width/2, height*0.5); rotate(-radians(12)); alig

Generative Art #138

Codefloat sep = 2;int[] colors = {#ffbf00 ,#e83f6f ,#2274a5 ,#32936f ,#ffffff};//int[] colors = {#000000, #ffffff};void setup() { size(900, 900); pixelDensity(2); noLoop(); strokeCap(SQUARE);}void draw() { background(#ffffff); generate();

Generative Art #137

CodeArrayList<Form> forms;Grid grid;int seed = (int)random(100000);void setup() { size(900, 900, P2D); pixelDensity(2); smooth(8); rectMode(CENTER); grid = new Grid(0, 0, width, 100);}void draw() { randomSeed(seed); background(#ffffff);