|
|
@ -9,10 +9,12 @@ void
|
|
|
|
svg_text(double left, double baseline, string text) {
|
|
|
|
svg_text(double left, double baseline, string text) {
|
|
|
|
cout << "<text x='" << left << "' y='" << baseline << "'>" << text << "</text>";
|
|
|
|
cout << "<text x='" << left << "' y='" << baseline << "'>" << text << "</text>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void svg_rect(double x, double y, double width, double height, string stroke = "black", string fill = "black")
|
|
|
|
svg_rect(double x, double y, double width, double height) {
|
|
|
|
{
|
|
|
|
cout << "<rect x='" << x << "' y='" << y << "' width='" << width << "' height='" << height << "' />\n";
|
|
|
|
cout << "<rect x='" << x << "' y='" << y << "' width='" <<
|
|
|
|
|
|
|
|
width << "' height='" << height << "' fill='" << fill <<
|
|
|
|
|
|
|
|
"' stroke='" << stroke <<"' />\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|