#include "histogram_internal.h" #include #include #include using namespace std; int color(int bin, int max_count) { if (max_count == 0) { return 0; } int color; return color = round((10 - (bin * 9) / max_count)); }