examples/dom/color_truecolor_HSV.cpp

    //Copyright2020ArthurSonzogni.Allrightsreserved.
    //UseofthissourcecodeisgovernedbytheMITlicensethatcanbefoundin
    //theLICENSEfile.
    #include<ftxui/dom/elements.hpp>//foroperator|,Elements,Fit,bgcolor,color,hbox,text,vbox,Element
    #include<ftxui/screen/screen.hpp>//forFull,Screen
    #include<memory>//forallocator
    #include<utility>//formove

    #include"ftxui/dom/node.hpp"//forRender
    #include"ftxui/screen/color.hpp"//forColor,ftxui

    intmain(){
    usingnamespaceftxui;

    intsaturation=255;
    Elementsarray;
    for(intvalue=0;value<255;value+=20){
    Elementsline;
    for(inthue=0;hue<255;hue+=2){
    line.push_back(text("▀")//
    |color(Color::HSV(hue,saturation,value))//
    |bgcolor(Color::HSV(hue,saturation,value+10)));
    }
    array.push_back(hbox(std::move(line)));
    }

    autodocument=vbox(std::move(array));

    autoscreen=Screen::Create(Dimension::Full(),Dimension::Fit(document));
    Render(screen,document);

    screen.Print();

    return0;
    }