Daily Creative Coding

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

静画

ノイジーなパーリンノイズ

/** * noisy perlin noise * * @author aadebdeb * @date 2017/03/10 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { var nscale = 0.004; var noffsetX = random(10000); var noffsetY = ra…

変調されたパーリンノイズ #2

/** * modulated perlin noise * * @author aadebdeb * @date 2017/03/09 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { var nscale = 0.01; var noffsetX = random(10000); var noffsetY =…

変調されたパーリンノイズ

/** * modulated perlin noise * * @author aadebdeb * @date 2017/03/08 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { var nscale = 0.002; var nbaseX = random(10000); var nbaseY = ra…

歪んだパーリンノイズ#3

/** * distorted perline noise #3 * * @author aadebdeb * @date 2017/03/07 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { background(0); noStroke(); var ndw = random(10000); var ndh…

歪んだパーリンノイズ #2

/** * distorted perline noise #2 * * @author aadebdeb * @date 2017/03/06 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { background(0); noStroke(); var ndistort = random(10000); va…

歪んだパーリンノイズ

/** * distorted perline noise * * @author aadebdeb * @date 2017/03/05 */ function keyPressed(){ saveCanvas("image.jpg", "jpg"); } function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { backg…

blendMode(DIFFERENCE)で干渉する縞

/** * interference disc * * @author aadebdeb * @date 2017/02/14 */ function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { blendMode(BLEND); background(random(255), random(255), random(255));…

パーリンノイズの層

/* * layers of perlin noise * * @author aadebdeb * @date 2017/01/30 */ var colors; function setup() { createCanvas(windowWidth, windowHeight); mousePressed(); } function mousePressed() { var cscale = [random(0.1), random(0.1), random(0.1)]…

Truchetタイル

/** * truchet tiles * * @author aa_debdeb * @date 2017/01/19 */ void setup(){ size(500, 500); mousePressed(); } void mousePressed(){ int tileSize = 25; float borderSize = random(0, tileSize / 2); color bgColor = color(random(255), random(2…

CMYK網点

/** * CMYK halftone * * @author aa_debdeb * @date 2017/01/14 */ float[] sizeScale; void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ sizeScale = new float[4]; for(int i = 0; i < 4; i++){ sizeScale[i] = random(1); } } voi…

グレイスケールのドット

/** * grayscale dots * * @author aa_debdeb * @date 2017/01/12 */ void setup(){ size(640, 640); noStroke(); mousePressed(); } void mousePressed(){ background(200); for(int i = 0; i < 2000; i++){ float x = random(-50, width + 50); float y = …

CMYのドット

/** * CMY dots * * @author aa_debdeb * @date 2017/01/11 */ void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ ArrayList<Obj> objs = new ArrayList<Obj>(); color[] colors = {color(255, 0, 255), color(0, 255, 255), color(255, 255, 0)}</obj></obj>…

抽象的なノイズ

/** * abstract noise * * @author aa_debdeb * @date 2016/11/30 */ int layerNum = 10; color[] layerColors; void setup(){ size(500, 500); mousePressed(); } void mousePressed(){ layerColors = new color[layerNum + 1]; for(int i = 0; i < layerNu…

白黒の星空

starry sky in black and white - OpenProcessing /** * starry sky in black and white * * @author aa_debdeb * @date 2016/10/27 */ void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ PVector offset = new PVector(random(10000),…

手書きのドット

hand-written dots - OpenProcessing /** * hand-written dots * * @author aa_debdeb * @date 2016/10/18 */ ArrayList<Circle> circles; void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ background(random(255), random(255), random(255)</circle>…

再帰的な三角形分割

/** * recursive triangle division * * @author aa_debdeb * @date 2016/10/16 */ void setup(){ size(640, 640); noStroke(); colorMode(HSB, 360, 100, 100); mousePressed(); } void mousePressed(){ float hue = random(360); background(hue, 40, 100)…

シフトによるタイリング

/** * shift tiling * * @author aa_debdeb * @date 2016/10/09 */ int cellNum = 10; int tempSize = 25; int rectSize = 2; void setup(){ size(500, 500); mousePressed(); } void mousePressed(){ int[][][] templates = new int[tempSize][tempSize][2]…

ベジエ曲線でタイリング

/** * bezier tiling * * @author aa_debdeb * @date 2016/10/08 */ int cellNum = 160; float cellSize = 40; void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ background(255); stroke(random(255), random(255), random(255)); st…

五角形の再帰分割

/** * pentagon division * * @author aa_debdeb * @date 2016/10/01 */ float phi = (1.0 + sqrt(5.0)) / 2.0; void setup(){ size(640, 640); translate(width / 2, height / 2); ArrayList<Pentagon> pentagons = new ArrayList<Pentagon>(); pentagons.add(new Pentagon()); </pentagon></pentagon>…

邪悪な目

/** * evil eye * * @author aa_debdeb * @date 2016/09/28 */ int ringNum = 20; void setup(){ size(640, 640); noFill(); stroke(20); } void draw(){ background(230); translate(width / 2, height / 2); rotate(-HALF_PI); for(int ri = 1; ri <= ring…

円環状の全結合ネットワーク

/** * fully connected circular network * * @author aa_debdeb * @date 2016/09/27 */ void setup(){ size(640, 640); } void draw(){ background(230); translate(width / 2, height / 2); float alpha = map(mouseY, 0, height, 0, 255); stroke(20, alp…

ネオンライト

/** * neon lights * * @author aa_debdeb * @date 2016/09/22 */ ArrayList<Node> nodes; ArrayList<Edge> edges; color c; void setup(){ size(640, 640); mousePressed(); } void mousePressed(){ nodes = new ArrayList<Node>(); float r = 200; float angStep = TWO_PI / </node></edge></node>…

斜め線

/** * slanting lines * * @author aa_debdeb * @date 2016/08/21 */ float e = 2; void setup(){ size(500, 500); noStroke(); mousePressed(); } void draw(){} void mousePressed(){ background(random(255), random(255), random(255)); fill(random(255…

編みこみ斜め格子

/** * knitted skew lattice * * @author aa_debdeb * @date 2016/08/15 */ float step = 20; float stepNum = 25; float border = 5; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), rando…

編みこみ格子

/** * knitted lattice * * @author aa_debdeb * @date 2016/08/14 */ float step = 20; float border = 10; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), random(255), random(255)); co…

茂み

/** * 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; …

カテナリー曲線

/** * catenaries * * @author aa_debdeb * @date 2016/08/11 */ void setup(){ size(500, 500); mousePressed(); } void draw(){} void mousePressed(){ background(248, 248, 255); noFill(); for(int i = 0; i < 150; i++){ float a = random(1, 2); PVec…

パーリンノイズの風景

/** * landscape of perlin noise * * @author aa_debdeb * @date 2016/08/02 */ void setup(){ size(500, 500); noFill(); mousePressed(); } void draw(){} void mousePressed(){ float noiseX = random(10000); float noiseY = random(10000); float[][] …

ランダムの風景

/** * landspace of randomness * * @author aa_debdeb * @date 2016/08/01 */ void setup(){ size(500, 500); noFill(); mousePressed(); } void draw(){} void mousePressed(){ float[][] values = new float[width][height]; for(int x = 0; x < width; x…

黄金比の葉序

/** * leaf arrangement by golden ratio * * @author aa_debdeb * @date 2016/07/25 */ color[] colors = {color(25, 25, 112), color(199, 21, 133), color(255, 255, 0), color(220, 20, 60)}; float[] cStep = {0.0, 0.3, 0.4, 1.0}; void setup(){ size…