From c8c2cda678cae9896b9befea28a2a6be04a8b68d Mon Sep 17 00:00:00 2001 From: "PARZIVAL (BreganIM)" Date: Fri, 2 May 2025 23:30:36 +0300 Subject: [PATCH] =?UTF-8?q?svg:=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE=D1=87?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0=20SVG?= =?UTF-8?q?=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8=20=D0=B3=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svg.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 svg.h diff --git a/svg.h b/svg.h new file mode 100644 index 0000000..c024de6 --- /dev/null +++ b/svg.h @@ -0,0 +1,12 @@ +#pragma once +#include +#include +#include + +void svg_begin(double width, double height); +void svg_end(); +void svg_text(double left, double baseline, const std::string& text); +void svg_rect(double x, double y, double width, double height, + const std::string& stroke = "black", + const std::string& fill = "black"); +void show_histogram_svg(const std::vector& bins); \ No newline at end of file