using namespace LibBoard;
int main(int, char *[])
{
board.
clear(Color::White);
Style::setDefaultLineWidth(0.1);
Style::setDefaultLineStyle(SolidStyle);
Style::setDefaultLineCap(RoundCap);
Style::setDefaultLineJoin(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(Path::OpenPath, Color::Blue, Color::Null);
Ellipse circle = LibBoard::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(
LibBoard::grid(
Point(0, 0), 12, 6, 120, 60, Color::Red, Color::Null, 0.5, SolidStyle, ButtCap, RoundJoin), ShapeList::Right, ShapeList::AlignCenter);
board.
saveSVG(
"tilings.svg", Board::BoundingBox, 0.0, Board::UCentimeter);
}