#include <memory>
#include <string>
Element ColorTile(
int red,
int green,
int blue) {
}
Element ColorString(
int red,
int green,
int blue) {
);
}
int main(int argc, const char* argv[]) {
int red = 128;
int green = 25;
int blue = 100;
auto slider_red =
Slider(
"Red :", &red, 0, 255, 1);
auto slider_green =
Slider(
"Green:", &green, 0, 255, 1);
auto slider_blue =
Slider(
"Blue :", &blue, 0, 255, 1);
slider_red,
slider_green,
slider_blue,
});
auto renderer =
Renderer(container, [&] {
ColorTile(red, green, blue),
slider_red->Render(),
slider_green->Render(),
slider_blue->Render(),
ColorString(red, green, blue),
}) |
});
screen.Loop(renderer);
}