#include <stdio.h>
#include <math.h>
#include "svg.h"   /* ブックカバー描画用部品群の読み込み */

int main(void){
    int i, j=120;
    
    start();                      /* 描画の開始 */
    rulers();                     /* 折り目の目安の線 */

    stroke(0xc0c0c0);              /* 線の色を指定 */
    strokeWeight(0.7);             /* 線の太さを指定 */

    /* rect(20, 20, 20, 20); */
    /* arc(20, 20, 20, 20, 90, 0); */
    /* fill(0xff0000); */
    textFont("Verdana", 12);       /* フォントを指定 */
    text("Kagawa Univ.", 20, 20);  /* 文字列を描画 */

    for (i=1; i<29; i++) {   /* iの値を1〜28まで変えながら28回くり返す */
        fill(0xffffff);            /* ぬりつぶしの色を指定 */
        rect(i*10,j,10,50);        /* 長方形を描画 */
    }                        /* iのくり返し終わり */
        
    for (i=1; i<28; i++) {   /* iの値を1〜27まで変えながら27回くり返す */
        if (i%7==0 || i%7==4){
            continue;
        } else {
            fill(0);                /* ぬりつぶしの色を指定 */
            rect(i*10+7,j,6,35);    /* 長方形を描画 */ 
        } 
    }                         /* iのくり返し終わり */
    finish();                       /* 描画の後始末 */
    return 0;
}
