13 using namespace ftxui;
17 for (
int value = 0; value < 255; value += 20) {
19 for (
int hue = 0; hue < 255; hue += 2) {
20 line.push_back(text(
"▀")
21 | color(Color::HSV(hue, saturation, value))
22 | bgcolor(Color::HSV(hue, saturation, value + 10)));
29 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
return hbox({ text(std::to_string(int(progress *100))+"% ")|size(WIDTH, EQUAL, 5), gauge(progress), })