12 using namespace ftxui;
16 for (
int value = 0; value < 255; value += 20) {
18 for (
int hue = 0; hue < 255; hue += 2) {
19 line.push_back(text(
"▀")
20 | color(Color::HSV(hue, saturation, value))
21 | bgcolor(Color::HSV(hue, saturation, value + 10)));
23 array.push_back(hbox(std::move(line)));
26 auto document = vbox(std::move(array));
28 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
29 Render(screen, document);