#include "svg.h"

int main(void){
    start();
    rulers();
    
    strokeWeight(1);

    /* 左上の長方形 */ 
    fill(hsb360(0, 50, 100));
    stroke(hsb360(120, 100, 100));
    rect(50, 50, 60, 40);

    /* 楕円 */
    fill(hsb360(120, 50, 100));
    stroke(hsb360(240, 100, 100));
    ellipse(140, 70, 30, 40);

    /* 三角 */
    fill(hsb360(240, 50, 100));    
    stroke(hsb360(0, 100, 100));
    triangle(170, 50, 170, 90, 200, 90);

    /* 右上の平行四辺形 */
    noFill();
    stroke(bw100(50));
    quad(190, 50, 220, 90, 250, 90, 220, 50);

    /* 左下の四本の弧 */
    stroke(hsb360(0, 100, 100));
    arc360(75, 130, 40, 40, 0, 90);
    stroke(hsb360(30, 100, 100));
    arc360(75, 130, 40, 40, 90, 180);
    stroke(hsb360(60, 100, 100));
    arc360(75, 130, 40, 40, 180, 270);
    stroke(hsb360(90, 100, 100));
    arc360(75, 130, 40, 40, 270, 360);

    /* 下の四本の線分 */
    stroke(hsb360(120, 100, 100));
    line(115, 110, 115, 150);
    stroke(hsb360(150, 100, 100));
    line(115, 150, 145, 150);
    stroke(hsb360(180, 100, 100));
    line(145, 150, 145, 110);
    stroke(hsb360(210, 100, 100));
    line(145, 110, 115, 110);

    /* 右下の文字列 */
    noStroke();
    textFont("Times New Roman", 9);
    fill(hsb360(240, 100, 100));
    text("ABCXYZ", 170, 120);
    textFont("Verdana", 10);
    fill(hsb360(270, 100, 100));
    text("19&#x231a;&#x2600;&#x2601;&#x2602;&#x2603;", 170, 130);
    fill(hsb360(300, 100, 100));
    text("&#x273f;&#x2661;&#x270c;&#x2620;&#x2655;&#x2708;", 170, 140);
    fill(hsb360(330, 100, 100));
    text("&#x2605;&#x2b20;&#x2b21;&#x2721;&#x263a;&#x2639;", 170, 150);
    finish();
    
    return 0;
}
