Daily Creative Coding

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

2016-10-01から1日間の記事一覧

五角形の再帰分割

/** * pentagon division * * @author aa_debdeb * @date 2016/10/01 */ float phi = (1.0 + sqrt(5.0)) / 2.0; void setup(){ size(640, 640); translate(width / 2, height / 2); ArrayList<Pentagon> pentagons = new ArrayList<Pentagon>(); pentagons.add(new Pentagon()); </pentagon></pentagon>…