Daily Creative Coding

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

2015-10-05から1日間の記事一覧

シェルピンスキーのカーペット

/** * Sierpinski Carpet * * @author aa_debdeb * @date 2015/10/05 */ int MAX_DEPTH = 5; int MAX_SIZE = 500; void setup(){ size(500, 500); smooth(); noStroke(); Square root = new Square(); root.draw(); } class Square{ PVector topLeft; float …

吸収・爆発するパーティクル

/** * Particles for Absorption and Explosion * * @author aa_debdeb * @date 2015/10/04 */ float MAX_RADIOUS = 100; float MAX_SPEED = 20; float EXPLOSION_NUM = 10; ArrayList<Particle> particles; void setup(){ size(500, 500); smooth(); frameRate(24); n</particle>…