Daily Creative Coding

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

ランダム

3本の線影

/** * Three Color Lines * * @author aa_debdeb * @date 2016/01/29 */ ArrayList<Line> lines; void setup(){ size(500, 500); frameRate(30); background(0); lines = new ArrayList<Line>(); lines.add(new Line(color(255, 182, 193, 50))); lines.add(new Line(col</line></line>…

マスクで円を虫食いにする

/** * Uncertain Circle * * @author aa_debdeb * @date 2016/01/23 */ float globalRadious = 200; PGraphics mask; ArrayList<Hole> holes; void setup(){ size(500, 500); smooth(); frameRate(30); noStroke(); mask = createGraphics(width, height); holes =</hole>…

blendModeのADDを使う

Processing3.0が必要。 ADDを使うときは、背景を暗めの色にして、それから明るめの色を足していく。 /** * blendMode Test * * @author aa_debdeb * @date 2016/01/20 * * Processing 3.0 is required for this sketch. */ ArrayList<Field> fields; void setup(){ </field>…

湧き出るひし形

/** * rhombus * * @author aa_debdeb * @date 2016/01/17 */ ArrayList<Frame> frames; void setup(){ size(500, 500); smooth(); frameRate(30); frames = new ArrayList<Frame>(); frames.add(new Frame()); } void draw(){ background(255); translate(width / 2, heig</frame></frame>…

マスクでスケッチを穴あきにする

/** * Hole Mask * * @author aa_debdeb * @date 2016/01/16 */ ArrayList<Particle> particles; ArrayList<Hole> holes; PGraphics mask; void setup(){ size(500, 500); smooth(); frameRate(30); mask = createGraphics(width, height); particles = new ArrayList<Particle>(); for</particle></hole></particle>…

2Dのパリーンノイズをサイケデリックに可視化する

/** * Psychedelic Perlin 2D * * @author aa_debdeb * @date 2016/01/12 */ float noiseX; float noiseY; float noiseT; void setup(){ size(500, 500); frameRate(30); colorMode(HSB, 360, 100, 100); noiseX = random(100); noiseY = random(100); noise…

パーリンノイズで円の大きさに対する周波数を変化させる

/** * 2D Perlin Oscilallator * * @author aa_debdeb * @date 2016/01/10 */ float noiseX, noiseY; ArrayList<Osc> oscs; void setup(){ size(500, 500); smooth(); frameRate(30); noiseX = random(100); noiseY = random(100); oscs = new ArrayList<Osc>(); for(i</osc></osc>…

スノーフォールライト

/** * Snowfall Lights * * @author aa_debdeb * @date 2015/01/09 */ ArrayList<Flow> flows; void setup(){ size(500, 500); smooth(); frameRate(30); background(0); flows = new ArrayList(); for(int i = 0; i < 100; i++){ flows.add(new Flow()); } } void</flow>…

曼荼羅

/** * Mandala * * @author aa_debdeb * @date 2016/01/05 */ void setup(){ size(500, 500); background(64); } void draw(){ if(mousePressed){ PVector mouse = new PVector(mouseX - width / 2, mouseY - height / 2); translate(width / 2, height / 2)…

マウスの近くに線を出現させる

/** * Lines * * @author aa_debdeb * @date 2015/01/04 */ ArrayList<Line> lines; void setup(){ size(500, 500); frameRate(30); lines = new ArrayList<Line>(); for(int i = 0; i < 300; i++){ float s1 = random(width); float s2 = random(width); float t = rand</line></line>…

サイケデリック

/** * Psychedelia * * @author aa_debdeb * @date 2015/12/31 */ int rectNum = 200; ArrayList<Integer> colors; void setup(){ size(500, 500); rectMode(CENTER); colorMode(HSB, 360, 100, 100); noStroke(); frameRate(45); colors = new ArrayList<Integer>(); for(int </integer></integer>…

デジタル・クラウド

/** * Digital Cloud * * @author aa_debdeb * @date 2015/12/29 */ float radious = 6; float time = 0.0; float noiseDrawX = random(100); float noiseDrawY = random(100); float noiseColorRX = random(100); float noiseColorRY = random(100); float …

レーザービーム

/** * Laser Beam * * @author aa_debdeb * @date 2015/11/19 */ float[] startXs; float[] startYs; void setup(){ size(500, 500); smooth(); frameRate(45); startXs = new float[4]; startYs = new float[4]; for(int i = 0; i < 4; i++){ startXs[i] = …

花びら

/** * Petals * * @author aa_debdeb * @date 2015/11/18 */ ArrayList<Flow> flows; void setup(){ size(500, 500); smooth(); frameRate(60); background(255, 240, 245); flows = new ArrayList<Flow>(); } void draw(){ noStroke(); fill(255, 240, 245, 10); rect(-</flow></flow>…