From db3e66ad4341cb6a3d4fb637054b4e350b02bab7 Mon Sep 17 00:00:00 2001
From: KapitonovMikA <KapitonovMikA@mpei.ru>
Date: Mon, 20 May 2024 04:01:44 +0300
Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D0=B5=D1=80=D1=81=D0=BE=D0=BD?=
 =?UTF-8?q?=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2=D0=B0=D1=80=D0=B8?=
 =?UTF-8?q?=D0=B0=D0=BD=D1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 main.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/main.cpp b/main.cpp
index edc3077..3e0fee2 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2,6 +2,7 @@
 #include <conio.h>
 #include <vector>
 #include <stdlib.h>
+#include <string>
 #include "histogram.h"
 #include "text.h"
 #include "svg01.h"
@@ -10,6 +11,8 @@ using namespace std;
 struct Input {
     vector<double> numbers;
     size_t bin_count{};
+    string colors_stroke;
+    string colors_fill;
 };
 
 Input
@@ -30,6 +33,11 @@ input_data(){
 
     cerr << "Enter bin count: ";
     cin >> in.bin_count;
+    in.colors_stroke = "midnightblue";
+    in.colors_fill = "deeppink";
+
+    input_colors(in.colors_stroke, in.colors_fill);
+
     return in;
 }
 
@@ -38,6 +46,6 @@ int main()
 
     auto in = input_data();
     std::vector<size_t> bins = make_histogram(in.numbers, in.bin_count);
-    show_histogram_svg(bins);
+    show_histogram_svg(bins, in.colors_stroke, in.colors_fill);
     return 0;
 }