Daily Creative Coding

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

2016-12-30から1日間の記事一覧

ベクトル計算によるパーティクルの壁面での反射

/** * reflection of a particle * * @author aa_debdeb * @date 2016/12/30 */ int COUNT = 200; PVector loc, vel; float circleR = 30; void setup(){ size(500, 500); noStroke(); initialize(); } void initialize(){ loc = new PVector(width / 2, hei…