#include <memory>
#include <utility>
int main() {
int saturation = 255;
for (int value = 0; value < 255; value += 3) {
int v = value * value / 255;
}
})),
hbox({
text(
"magenta line:"),
hbox(std::move(magenta_line))}),
hbox({
text(
"Yellow line :"),
hbox(std::move(yellow_line))}),
})),
});
screen.Print();
return 0;
}
static Color RGB(uint8_t red, uint8_t green, uint8_t blue)
Build a Color from its RGB representation. https://en.wikipedia.org/wiki/RGB_color_model.
static Screen Create(Dimensions dimension)
Create a screen with the given dimension.
Dimensions Fit(Element &, bool extend_beyond_screen=false)
Decorator bgcolor(Color)
Decorate using a background color.
Element window(Element title, Element content, BorderStyle border=ROUNDED)
Draw window with a title and a border around the element.
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.
Element vbox(Elements)
A container displaying elements vertically one by one.