読者です 読者をやめる 読者になる 読者になる

30 min. Processing

毎日30分、Processingで何かを作る

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…

都市を見下ろす

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

青海波模様

/** * Seigaiha pattern * * @author aa_debdeb * @date 2016/07/06 */ float r = 50; float hStep = r / sqrt(3); float[] radians; void setup(){ size(640, 480); noFill(); strokeWeight(2); radians = new float[10]; radians[0] = 0.0; for(int i = 1;…

亀甲模様

/** * hexagonal pattern * * @author aa_debdeb * @date 2016/07/03 */ float e = 15.0; void setup(){ size(640, 480); mousePressed(); } void draw(){ } void mousePressed(){ color c1 = color(random(255), random(255), random(255)); color c2 = col…

波模様

/** * pattern of waves * * @author aa_debdeb * @date 2016/06/30 */ float margin = 50; float radious = 15; float theta = 120; color bg, sc; void setup(){ size(500, 500); noFill(); strokeWeight(3); mousePressed(); } void mousePressed(){ bg =…

ペンローズ・タイル

/** * Penrose Tiling * * @author aa_debdeb * @date 2016/06/29 */ float e = 400; color c1, c2; float phi = (1.0 + sqrt(5)) / 2.0; ArrayList<Triangle> triangles; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ trian</triangle>…

ペンローズの三角形(影付き)

/** * Penrose Triangle with Shadow * * @author aa_debdeb * @date 2016/06/28 */ color bg, c1, c2, c3; float e = 70; float w = 75; void setup(){ size(500, 500); stroke(0); strokeWeight(1); colorMode(HSB, 360, 100, 100); mousePressed(); } voi…

ペンローズの三角形

/** * Penrose Triangle * * @author aa_debdeb * @date 2016/06/27 */ color bg, sc, c1, c2, c3; float e = 110; float w = 60; void setup(){ size(500, 500); strokeWeight(1); mousePressed(); } void mousePressed(){ bg = color(random(255), random(…

斜めタイル

/** * skew tiling * * @author aa_debdeb * @date 2016/06/22 */ float e = 20; float theta = PI / 4; float margin = 50; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ fill(random(255), random(255), random(…

斜め交互タイル

/** * skew alternate tiling * * @author aa_debdeb * @date 2016/06/21 */ float e = 20; float theta = PI / 4; float margin = 50; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ fill(random(255), random(255…

賽形模様(Cube Pattern)

/** * pattern of pseudo 3d cubes * * @author aa_debdeb * @date 2016/06/09 */ color c1, c2, c3; float e = 30.0; void setup(){ size(500, 500); noStroke(); mousePressed(); } void draw(){ boolean isDisplayed = false; for(float y = -50; y < hei…

金の玉

/** * golden balls * * @author aa_debdeb * @date 2016/05/05 */ ArrayList<PVector> points; void setup(){ size(500, 500, P3D); points = new ArrayList<PVector>(); while(points.size() < 500){ float radious = random(200); float radian1 = random(PI); float radian</pvector></pvector>…

再帰的に円を描く

/** * circular fractal * * @author aa_debdeb * @date 2016/04/08 */ void setup(){ size(640, 640); mousePressed(); } void draw(){ } void mousePressed(){ background(255); stroke(255); fill(0); for(int d = 2; d < 9; d++){ float size = width / …

同じ色相でブロックを再帰的に分割する

/** * same hue * * @author aa_debdeb * @date 2016/04/03 */ void setup(){ size(640, 480); noStroke(); colorMode(HSB, 360, 100, 100); mousePressed(); } void draw(){ } void mousePressed(){ float hue = random(360); ArrayList<Block> queue = new ArrayL</block>…

ブロックを再帰的に分割する

/** * recursive segmentation * * @author aa_debdeb * @date 2016/04/01 */ void setup(){ size(640, 480); noStroke(); mousePressed(); } void draw(){ } void mousePressed(){ ArrayList<Block> queue = new ArrayList<Block>(); queue.add(new Block(0, 0, width, he</block></block>…

円のタイル

/** * circular filled tile * * @author aa_debdeb * @date 2016/03/22 */ int CELL_NUM = 25; int CELL_SIZE = 20; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), random(255), random(2…

弧と円のタイル

/** * circular tile * * @author aa_debdeb * @date 2016/03/21 */ int CELL_NUM = 25; int CELL_SIZE = 20; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), random(255), random(255)); s…

斜め格子迷路

/** * maze cross tiles * * @author aa_debdeb * @date 2016/03/20 */ int CELL_NUM = 50; int CELL_SIZE = 10; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), random(255), random(255))…

格子迷路

/** * maze tiles * * @author aa_debdeb * @date 2016/03/19 */ int CELL_NUM = 50; int CELL_SIZE = 10; void setup(){ size(500, 500); mousePressed(); } void draw(){ } void mousePressed(){ background(random(255), random(255), random(255)); stro…

斜めのタイル

/** * skew tile * * @author aa_debdeb * @date 2016/03/07 */ void setup(){ size(500, 500); noLoop(); background(255); stroke(0); strokeWeight(10); int step = 25; for(int w = 0; w < width; w += step){ for(int h = 0; h < height; h += step){ i…

年輪

/** * Annual Growth Ring * * @author aa_debdeb * @date 2016/02/08 * */ int LOOP_NUM = 60; void setup(){ size(500, 500); noLoop(); smooth(); background(255); ArrayList<ArrayList<Vertex>> verticiesList = new ArrayList<ArrayList<Vertex>>(); float angle = 0.0; ArrayList<Vertex> verticie</vertex></arraylist<vertex></arraylist<vertex>…

ヘアー

/** * Hair * * @author aa_debdeb * @date 2016/02/06 */ void setup(){ size(500, 500); noLoop(); background(255, 239, 213); stroke(139, 69, 19, 100); noFill(); for(int i = 0; i < 1000; i++){ beginShape(); boolean isFirst = true; float x = ra…

輝き

/** * Shine * * @author aa_debdeb * @date 2016/01/28 */ ArrayList<Line> lines; void setup(){ size(500, 500); noLoop(); colorMode(HSB, 360, 100, 100); lines = new ArrayList<Line>(); for(int i = 0; i < 3000; i++){ lines.add(new Line()); } background(0);</line></line>…

絡み取られた球

/** * Entwined Sphere * * @author aa_debdeb * @date 2016/01/21 */ float radious = 150; void setup(){ size(500, 500, P3D); smooth(); sphereDetail(16); background(0); translate(width / 2, height / 2); float px = radious * sin(0) * cos(0); fl…

宇宙

/** * Universe * * @author aa_debdeb * @date 2016/01/07 */ void setup(){ size(640, 480); smooth(); noLoop(); background(30); colorMode(HSB, 360, 100, 100, 100); float noiseX = random(100); float noiseY = random(100); for(int i = 0; i < 200…

星空

/** * Starry Sky * * @author aa_debdeb * @date 2016/01/01 */ void setup(){ size(500, 300); smooth(); noLoop(); background(30); colorMode(HSB, 360, 100, 100, 100); for(int i = 0; i < 200; i++){ PVector pos = new PVector(random(width), rando…

画像をドロネー分割して三次元のモザイクにする

/** * 3D Color Image by Delaynay Triangulation * * @author aa_debdeb * @date 2015/12/22 */ Delaynay delaynay; void setup(){ size(512, 512, P3D); smooth(); noLoop(); PImage image = loadImage("lena.jpg"); image(image, 0, 0); ArrayList<Point> points</point>…