package sample.svg;

import static util.SVGUtil.*;

public class Phyllotaxis {

    public static void main(String[] args) {
        start();
        
        double cx = centerX(), cy = centerY();
        translate(cx, cy);
        rulers();
        scale(1.414, 1);
        for(int i=1; i<53; i++) {
            double kaku = i*PHYLLOTAXIS360; 
            stroke(hsl360(kaku, 100, 50));
            line(0, 0, 2*i*cos360(kaku), 2*i*sin360(kaku));
        }                       
        finish();
        return;
    }
}
