#include <cstdlib>
int main(int , char *[])
{
board.
clear(Color::White);
Shape::setDefaultLineWidth(0.1);
Shape::setDefaultLineStyle(Shape::SolidStyle);
Shape::setDefaultLineCap(Shape::RoundCap);
Shape::setDefaultLineJoin(Shape::RoundJoin);
g <<
Circle(10,10,20,Color::Blue,Color::Null);
grid <<
Line(0,0,100,0,Color::Blue);
grid << Line(0,0,0,-200,Color::Blue);
Polyline l(
false,Color::Blue,Color::Null);
grid.
addTiling(l,Point(0,0),10,20,0.0,Board::IgnoreLineWidth);
board << grid;
Circle circle(10,10,20,Color::Blue,Color::Null,1.0);
Line separator(bbox.
topRight(),bbox.
bottomRight(),Color::Black);
board.
append(separator, ShapeList::Right, ShapeList::AlignCenter);
board.
append(circle, ShapeList::Right, ShapeList::AlignTop);
board.
append(separator, ShapeList::Right, ShapeList::AlignCenter);
board.
append(circle, ShapeList::Right, ShapeList::AlignCenter);
board.
append(separator, ShapeList::Right, ShapeList::AlignCenter);
board.
append(circle, ShapeList::Right, ShapeList::AlignBottom);
separator = Line(bbox.
bottomLeft(),bbox.bottomRight(),Color::Black);
board.
append(separator, ShapeList::Bottom, ShapeList::AlignLeft);
board.
append(circle, ShapeList::Bottom, ShapeList::AlignLeft);
board.
append(separator, ShapeList::Bottom, ShapeList::AlignLeft);
board.
append(circle, ShapeList::Bottom, ShapeList::AlignCenter);
board.
append(separator, ShapeList::Bottom, ShapeList::AlignLeft);
board.
append(circle, ShapeList::Bottom, ShapeList::AlignRight);
board.
append(separator, ShapeList::Bottom, ShapeList::AlignLeft);
separator = Line(bbox.topRight(),bbox.bottomRight(),Color::Black);
board.
append(separator, ShapeList::Right, ShapeList::AlignCenter);
board.
append(
Board::makeGrid(Point(0,0),12,6,120,60,Color::Red,Color::Null,0.5,Shape::SolidStyle,Shape::ButtCap,Shape::RoundJoin),
ShapeList::Right, ShapeList::AlignCenter);
board.
saveSVG(
"tilings.svg", Board::BoundingBox, 0.0, Board::UCentimeter);
}