|
|
|
@ -2,9 +2,10 @@
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include "svg.h"
|
|
|
|
|
|
|
|
|
|
void InCol (){
|
|
|
|
|
std::string color;
|
|
|
|
|
std::cin >> color;
|
|
|
|
|
std::string InCol (){
|
|
|
|
|
std::string color1;
|
|
|
|
|
std::cin >> color1;
|
|
|
|
|
return color1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void svg_begin(double width, double height)
|
|
|
|
@ -44,7 +45,7 @@ void show_histogram_svg(const std::vector<std::size_t>& bins)
|
|
|
|
|
const auto BLOCK_WIDTH = 10;
|
|
|
|
|
|
|
|
|
|
std::string color;
|
|
|
|
|
InCol();
|
|
|
|
|
color = InCol();
|
|
|
|
|
|
|
|
|
|
const std::size_t MAX_ASTERISK = IMAGE_WIDTH - TEXT_WIDTH;
|
|
|
|
|
svg_begin(IMAGE_WIDTH, IMAGE_HEIGHT);
|
|
|
|
|