マガジンのカバー画像

まず100作るGenerative Art

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

2018年12月の記事一覧

ProcessingでGenerative art #60

背景にいい質感が出ました。 Codeimport processing.opengl.*;int actRandomSeed = 0;int rectSize = 100;int h = 360;void setup() { size(800, 800, OPENGL); pixelDensity(1); colorMode(HSB, 360, 100, 100, 100); rectMode(CENTER);}void draw() { randomSeed

ProcessingでGenerative art #59

Codeint actRandomSeed = 0;float maxAngle = 720;float diameter = 50;float h = 2;void setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); background(213, 96, 8);}void draw() { randomSeed(actRandomSeed); if

ProcessingでGenerative art #58

Box2dの練習。 Codeimport shiffman.box2d.*;import org.jbox2d.collision.shapes.*;import org.jbox2d.common.*;import org.jbox2d.dynamics.*;ArrayList<Box> boxes;ArrayList<Boundary> boundaries; Box2DProcessing box2d;void setup() { size(800, 800);

ProcessingでGenerative art #57

CodeParticle[] particles = new Particle[4000];float noiseScale = 800, noiseStrength = 55;float pAlpha = 20, strokeWidth = 0.1;void setup(){ size(800, 800); pixelDensity(2); background(255); for(int i=0; i<particles.length; i++){ pa

ProcessingでGenerative art #56

CodeParticle[] particles = new Particle[4000];int particlesCount = 4000;float noiseScale = 800, noiseStrength = 30;float pAlpha = 30, strokeWidth = 0.3;int drawMode = 1;void setup() { size(800, 800); pixelDensity(2); background(255);

ProcessingでGenerative art #55

Codeint maxCount = 5000;int currentCount = 1;float [] x = new float [maxCount];float [] y = new float[maxCount];float [] r = new float[maxCount];int [] closestIndex = new int[maxCount];float minRadius = 3;float maxRadius = 70;void setup()

ProcessingでGenerative art #54

CodeCircle circle ;boolean freeze = false;int alph = 100;void setup() { size(displayWidth, displayHeight); pixelDensity(2); smooth(); noFill(); stroke(255, alph); strokeWeight(0.5); blendMode(ADD); background(0); circle = new Cir

ProcessingでGenerative art #53

Codeint actRandomSeed = 0;int tileCount = 30;int rectSizeW;int rectSizeH;float maxDist;void setup() { size(750, 750); pixelDensity(2); strokeWeight(0.5); noStroke(); colorMode(HSB, 360, 100, 100, 100); rectSizeW = width/tileCount;

ProcessingでGenerative art #52

Codeint tileCount = 10;int actRandomSeed = 0;float maxDist;void setup() { size(750, 750); pixelDensity(2); strokeWeight(0.5); noFill(); stroke(0, 50); maxDist = sqrt(sq(width)+sq(height));}void draw() { background(255); randomSeed

ProcessingでGenerative art #51

Codeint tileCount = 50;int actRandomSeed = 0;float maxDist;void setup() { size(750, 750); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); strokeCap(PROJECT); maxDist = sqrt(sq(width)+sq(height));}void draw() { background(360);

ProcessingでGenerative art #50

Code float d = 100;float angleNoise;void setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); noLoop(); rectMode(CENTER); angleNoise = random(10);}void draw() { background(360); for (float i = 0; i < widt

ProcessingでGenerative art #49

Codevoid setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100); noLoop();}void draw() { background(209, 90, 10); pushMatrix(); translate(width * 0.5, height); rotate(random(-HALF_PI, HALF_PI)); sinBranch(height

ProcessingでGenerative art #48

Codevoid setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100); noLoop(); blendMode(SUBTRACT);}void draw() { background(21, 8, 89); pushMatrix(); translate(width * 0.7, height); sinBranch(height * 0.75, 6); po

ProcessingでGenerative art #47

Codevoid setup() { size(800, 800); pixelDensity(2); colorMode(HSB, 360, 100, 100, 100); noLoop();}void draw() { drawRect(0, 0, width, height); drawCircle(width/2, height/2, 200, 5);}void drawCircle(float x, float y, float d, int n