test_svg.cpp 505 Bytes
Newer Older
Pascal Noisette's avatar
Pascal Noisette committed
1

2 3 4 5 6 7 8 9
#include "../src/render_svg.hpp"
using namespace std;

int main()
{


    Svg s;
Pascal Noisette's avatar
Pascal Noisette committed
10 11 12 13 14 15 16 17 18 19
    s.init("./out.svg");

    s.draw_container(0,LEVEL*1,50,100);
    s.draw_container(0,LEVEL*2,50,100);
    s.draw_container(0,LEVEL*3,50,100);

    s.draw_state(100, 750, 1, 0xff,0xcc,33);
    s.draw_state(400, 750, 2, 0xff,0xcc,33);
    s.draw_state(70, 300, 3, 0xff,0xcc,33);

Pascal Noisette's avatar
Pascal Noisette committed
20 21
    s.draw_arrow(100,700,LEVEL*1,LEVEL*3);
    s.draw_arrow(200,400,LEVEL*2,LEVEL*2);
22 23 24 25
    s.end();

    return 0;
}