#include "svg.h"

int main(void) {
    int i;
    double cx, cy;
    
    start();                                               //描画開始
    rulers();                                              //ブックカバーの線を引く
    
    cx = centerX(), cy = centerY();                        //xとy中心座標を取得
    translate(cx, cy);                                     //中心へ移動
    scale(1.414, 1);                                       //x方向に拡大
    
    for(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 0;
}
