Daily Creative Coding

元「30 min. Processing」。毎日、Creative Codingします。

3D

3Dのトンネル #3

3D

3D tunnel #3 - OpenProcessing /** * 3D tunnel #3 * * @author aa_debdeb * @date 2016/10/25 */ float distance = 0.0; float speed = 5; float objStep = 30; color c1, c2; boolean useRect; float noiseX = random(10000); float noiseY = random(1000…

3Dのトンネル #2

3D

3D tunnel #2 - OpenProcessing /** * 3D tunnel #2 * * @author aa_debdeb * @date 2016/10/24 */ float distance = 0.0; float speed = 5; float objStep = 40; color c1, c2; boolean useRect; void setup(){ //fullScreen(P3D); size(640, 640, P3D); re…

3Dのトンネル #1

3D

3D tunnel #1 - OpenProcessing /** * 3D tunnel #1 * * @author aa_debdeb * @date 2016/10/23 */ float distance = 0.0; float speed = 3; float objStep = 35; color c1, c2; boolean useRect; void setup(){ //fullScreen(P3D); size(640, 640, P3D); re…

無重力空間で回転移動するオブジェクト

3D

objects with zero gravity - OpenProcessing /** * objects with zero gravity * * @author aa_debdeb * @date 2016/10/22 */ ArrayList<Block> blocks; void setup(){ size(640, 640, P3D); blocks = new ArrayList<Block>(); for(int i = 0; i < 60; i++){ blocks.add(n</block></block>…

波面 3D

3D

/** * surface of wave * * @author aa_debdeb * @date 2016/10/15 */ PVector center; PVector nOffset; void setup(){ size(500, 500, P3D); center = new PVector(width / 2, height / 2); nOffset = new PVector(random(10000), random(10000)); } void …

ポップアップ円弧

3D

/** * arc 3D * * @author aa_debdeb * @date 2016/10/14 */ void setup(){ size(640, 640, P3D); noStroke(); mousePressed(); } void mousePressed(){ background(255); translate(width / 2, height / 2); for(int i = 0; i < 20; i++){ int arcNum = int…

三次元の花びら

3D

/** * 3D petals * * @author aa_debdeb * @date 2016/10/11 */ float maxRadious = 300; PVector offset1, offset2; float scale1 = 0.02; float scale2 = 0.01; color c1 = color(255); color c2 = color(255, 77, 172); void setup(){ size(640, 640, P3D…

拡大するキューブ群2

3D

/** * enlarging crowd of cubes 2 * * @author aa_debdeb * @date 2016/09/14 */ int BOX_NUM = 25; float BOX_SIZE = 20; int[][][] states; int[][][] neighbors; int[][] moves = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {-1, 0, 0}, {0, -1, 0}, {0, 0, -1}…

拡大するキューブ群

3D

/** * enlarging crowd of cubes * * @author aa_debdeb * @date 2016/09/13 */ int BOX_NUM = 50; float BOX_SIZE = 10; int[][][] states; int[][][] neighbors; int[][] moves = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {-1, 0, 0}, {0, -1, 0}, {0, 0, -1}};…

スピンする立方体

3D

/** * spinning cubes * * @author aa_debdeb * @date 2016/09/12 */ ArrayList<Box> boxes = new ArrayList<Box>(); void setup(){ size(640, 640, P3D); noStroke(); boxes = new ArrayList<Box>(); while(boxes.size() < 50){ PVector loc = new PVector(random(width), </box></box></box>…

球状の雲

3D

/** * sphere of cloud * * @author aa_debdeb * @date 2016/09/09 */ float scale = 100; float phi = (1 + sqrt(5)) / 2.0; float radious = sqrt(sq(1) + sq(phi)); ArrayList<Triangle> triangles; float nScale = 0.5; float tScale = 0.03; PVector nOffset; voi</triangle>…

二重螺旋

3D

/** * double helix * * @author aa_debdeb * @date 2016/09/07 */ void setup(){ size(480, 640, P3D); } void draw(){ background(255); translate(width / 2, 0, 0); rotateY(frameCount * 0.05); fill(152, 251, 152); stroke(152, 251, 152); float h =…

グラデーションの球

3D

/** * gradational sphere * * @author aa_debdeb * @date 2016/09/06 */ float scale = 100; float phi = (1 + sqrt(5)) / 2.0; float radious = sqrt(sq(1) + sq(phi)); ArrayList<Triangle> triangles; color[][] cols; void mousePressed(){ cols = new color[3][2</triangle>…

表面が流れる球

3D

/** * unstable sphere * * @author aa_debdeb * @date 2016/09/05 */ float scale = 100; float phi = (1 + sqrt(5)) / 2.0; float radious = sqrt(sq(1) + sq(phi)); ArrayList<Triangle> triangles; float nScale = 0.2; float tScale = 0.005; PVector nOffset; vo</triangle>…

桜ふぶき

3D

/** * shower of cherry blossom * * @author aa_debdeb * @date 2016/09/01 */ ArrayList<Triangle> triangles; void setup(){ size(640, 480, P3D); noStroke(); fill(255, 230, 234); triangles = new ArrayList<Triangle>(); } void draw(){ background(255); ArrayList<Triangle> next</triangle></triangle></triangle>…

多環の球

/** * multi-ringed sphere * * @author aa_debdeb * @date 2016/08/22 */ float step = 5; color c1 = color(0, 206, 209); color c2 = color(255, 215, 0); void setup(){ size(500, 500, P3D); noFill(); } void draw(){ background(0); translate(width …

パーティクルでいろいろな形をつくる

/** * morph by particles * * @author aa_debdeb * @date 2016/08/19 */ int state = 0; ArrayList<Particle> particles; void setup(){ size(500, 500, P3D); particles = new ArrayList<Particle>(); for(int i = 0; i < 5000; i++){ particles.add(new Particle()); } } void</particle></particle>…

パーティクルで構成された球

/** * sphere composed of particles * * @author aa_debdeb * @date 2016/08/18 */ float scale = 100; float phi = (1 + sqrt(5)) / 2.0; ArrayList<Particle> particles; void setup(){ size(500, 500, P3D); PVector[] vertices = {new PVector(0, 1, phi), new PV</particle>…

ジオデシック・ドーム

3D

/** * Geodesic Dome * * @author aa_debdeb * @date 2016/08/17 */ int state = 0; float scale = 100; float phi = (1 + sqrt(5)) / 2.0; float radious = sqrt(sq(1) + sq(phi)); ArrayList<Triangle> triangles; void setup(){ size(500, 500, P3D); PVector[] ver</triangle>…

茂み

/** * grove * * @author aa_debdeb * @date 2016/08/12 */ void setup(){ size(640, 480, P3D); mousePressed(); } void mousePressed(){ background(60, 179, 113); translate(width / 2, height * (4.0 / 5), -300); stroke(255); for(int i = 0; i < 6; …

三次元の再帰木

3D

/** * 3D recursive tree * * @author aa_debdeb * @date 2016/08/12 */ Tree tree; void setup(){ size(640, 480, P3D); tree = new Tree(); } void draw(){ background(60); translate(width / 2, height * (4.0 / 5)); rotateX(map(mouseY, 0, width, -PI…

なびく面

3D

/* * surface in the wind * * @author aa_debdeb * @date 2016/08/06 */ int num = 50; int step = 20; float scale = 0.1; PVector[] offsets; void setup(){ size(500, 500, P3D); fill(220, 20, 60); stroke(0); strokeWeight(1); offsets = new PVector…

キューブの崩壊

3D

/** * destruction of cube * * @author aa_debdeb * @date 2016/07/31 */ int blockNum = 10; float blockSize = 30; ArrayList<Block> blocks; void setup(){ size(500, 500, P3D); noStroke(); initialize(); } void initialize(){ blocks = new ArrayList<Block>(); fl</block></block>…

波の干渉3D

3D

/** * wave interference in 3D * * @author aa_debdeb * @date 2016/07/21 */ float step = 20; float maxAmp = 50; float maxDistance = 300; color c1 = color(22, 199, 175); color c2 = color(199, 21, 133); ArrayList<Oscillator> oscillators; void setup(){ siz</oscillator>…

金の板

3D

/** * golden plate * * @author aa_debdeb * @date 2016/07/20 */ color gold1, gold2; PVector[] noiseOffsets; void setup(){ size(500, 500, P3D); noStroke(); colorMode(HSB, 360, 100, 100); gold1 = color(43, 100, 85); gold2 = color(43, 20, 85);…

たくさんの円を傾けながら重ねて円錐をつくる

3D

/** * penguins * * @author aa_debdeb * @date 2016/07/18 */ float maxR = 100; float maxZ = 300; float vStep = 0.01; ArrayList<Tree> trees; void setup(){ size(640, 480, P3D); colorMode(HSB, 360, 100, 100); initialize(); } void initialize(){ trees </tree>…

水面を漂うオブジェクト

3D

/** * floating objects on water * * @author aa_debdeb * @date 2016/07/17 */ PVector stepSize = new PVector(30, 40); PVector rectSize = new PVector(20, 30); float maxZ = 200; PVector noiseOffset; float noiseScale = 0.003; float timeScale = …

海底探査

/** * seabed exploration * * @author aa_debdeb * @date 2016/07/15 */ float maxLocRadious = 800; float minSize = 10; float maxSize = 100; float noiseX = random(10000); float noiseY = random(10000); float noiseScale = 0.02; float camSpeed = …

都市を見下ろす

/** * birds-eye view of city * * @author aa_debdeb * @date 2016/07/14 */ void setup(){ size(500, 500, P3D); mousePressed(); } void draw(){ } void mousePressed(){ float maxLocRadious = 500; float minSize = 5; float maxSize = 30; float noise…

3D空間を高速移動する

3D

/** * endless rollar coaster * * @author aa_debdeb * @date 2016/07/13 */ float xScale = 750; float yScale = 750; float zScale = 0.001; float speed = 0.005; float eyeZ = 10; float ellipseWidth = 100; float noiseX, noiseY; void setup(){ size…