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)));
24 array.push_back(hbox(std::move(line)));
27 auto document = vbox(std::move(array));
29 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
30 Render(screen, document);