diff --git a/svg01.cpp b/svg01.cpp index 41b9ab6..8f97180 100644 --- a/svg01.cpp +++ b/svg01.cpp @@ -26,7 +26,7 @@ svg_text(double left, double baseline, string text) { } void -svg_rect(double x, double y, double width, double height, string stroke, string fill){ +svg_rect(double x, double y, double width, double height, string stroke = "midnightblue", string fill = "deeppink"){ cout << "<rect x='" << x << "' y='" << y << "' width='" << width << "' height='" << height << "' stroke='" << stroke << "' fill='" << fill << "'/>"; }