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