Daily Creative Coding

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

2015-08-01から1ヶ月間の記事一覧

Poping Up Bubbles

/** * Poping Up Bubbles * * @author aa_debdeb * @date 2015/08/31 */ int t = 0; void setup(){ size(500, 500); noStroke(); smooth(); background(0); frameRate(60); } void draw(){ fill(0, 5); rect(0, 0, width, height); if(t == 100){ popUpBubbl…

Black Hall

/** * Black Hall * * @author aa_debdeb * @ 2015/08/30 */ void setup(){ size(500, 500); noStroke(); smooth(); background(255); float hallSize = 250; float gradiationWidth = 200; for(int i = 0; i <= 255; i++){ fill(255 - i); float arcWidth =…

A Rebounding Ball

/** * A Rebounding Ball * * @author aa_debdeb * @date 2015/08/29 */ Ball ball; float BALL_MAX_SPEED = 20.0; float BALL_DIAMETER = 50.0; void setup(){ size(300, 300); smooth(); background(255); frameRate(60); ball = new Ball(); } void draw(…

Perlin RGB

/** * Perlin RGB * * @author aa_debdeb * @date 2015/08/28 */ // step size for color float cStep = 0.01; // bias for eatch RGB color float[] cBias = {0.0, 100.0, 200.0}; float t = 0.0; // step size for time float tStep = 0.05; void setup(){…

Perlin Sky

/** * Perlin Sky * * @author aa_debdeb * @date 2015/08/27 */ void setup(){ size(500, 500); smooth(); noStroke(); background(#00008b); for(int x = 0; x < width; x++){ for(int y = 0; y < height; y++){ fill(255, noise(x / 50.0, y / 50.0) * 25…

Sine Wave

/** * Sine Wave * * @author aa_debdeb * @date 2015/08/26 */ float amplitude = 200; float xStep = 0.1; float currentAngle = 0.0; float angleSpeed = 0.5; float angleStep = 2.0*PI / 512; void setup(){ size(500, 500); smooth(); noFill(); backg…

Approximate Circle

/** * * Approximate Circle * * @author aa_debdeb * @date 2015/08/25 */ void setup(){ size(500, 500); smooth(); noFill(); background(255); float centerX = width / 2.0; float centerY = height / 2.0; float diameter = 400; float radious = diam…

One Stroke Bezier

/** * One Stroke by Bezier * * @author aa_debdeb * @date 2015/08/24 * */ void setup(){ size(500, 500); smooth(); background(0); noFill(); stroke(255); strokeWeight(0.5); float x1 = 0; float y1 = 0; float cx1 = 0; float cy1 = 0; float x2 = …

Orbital System

/** * Orbital System * * @auther aa_debdeb * @date 2015/08/23 */ int numCircles = 30; ArrayList<Circle> circles; void setup(){ size(500, 500); noStroke(); smooth(); background(255); frameRate(30); circles = new ArrayList<Circle>(); for(int i = 0; i < numC</circle></circle>…

Random Flashing Points

/** * Random Flashing Points * * @author aa_debdeb * @date 2015/08/22 */ float onRate = 0.7; float diameter = 70; void setup(){ size(500, 500); noStroke(); smooth(); background(255); frameRate(3); } void draw(){ background(255); for(int x …

White Light

/** * White Light * * @author aa_debdeb * @ 2015/08/21 */ void setup(){ size(500, 500); noStroke(); smooth(); background(0); float lightSize = 300; float gradiationWidth = 100; for(int i = 0; i <= 255; i++){ fill(i); float arcWidth = light…

Random Shapes

/** * Random Shapes * * This sketch draws random 300 shapes (ellipse, quadrangle or triangle). * * @author aa_debdeb * @date 2015/08/20 * */ void setup(){ size(300, 300); noStroke(); smooth(); background(255, 255, 255); for(int i = 0; i < …