#include <memory>
#include <utility>
int main() {
int saturation = 255;
for (int value = 0; value < 255; value += 20) {
for (int hue = 0; hue < 255; hue += 2) {
|
color(Color::HSV(hue, saturation, value))
|
bgcolor(Color::HSV(hue, saturation, value + 10)));
}
array.push_back(
hbox(std::move(line)));
}
auto document =
vbox(std::move(array));
screen.Print();
return 0;
}
Dimensions Fit(Element &)
Decorator bgcolor(Color)
Decorate using a background color.
Element hbox(Elements)
A container displaying elements horizontally one by one.
Element text(std::wstring text)
Display a piece of unicode text.
std::vector< Element > Elements
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.
Decorator color(Color)
Decorate using a foreground color.
Element vbox(Elements)
A container displaying elements vertically one by one.