diff --git a/svg.cpp b/svg.cpp index f404978..8dd2c79 100644 --- a/svg.cpp +++ b/svg.cpp @@ -40,7 +40,7 @@ void show_histogram_svg(const std::vector& bins){ svg_end(); } -void svg_rect(double x, double y, double width, double height){ - std::cout << ""; +void svg_rect(double x, double y, double width, double height, std::string stroke, std::string fill){ + std::cout << ""; } diff --git a/svg.h b/svg.h index 5dc97d6..2340485 100644 --- a/svg.h +++ b/svg.h @@ -7,6 +7,6 @@ void svg_begin(double width, double height); void svg_end(); void show_histogram_svg(const std::vector& bins); void svg_text(double left, double baseline, std::string text); -void svg_rect(double x, double y, double width, double height); +void svg_rect(double x, double y, double width, double height, std::string stroke = "black", std::string fill = "black"); #endif // SVG_H_INCLUDED