Added config reading

This commit is contained in:
Bob Polis 2022-09-23 16:50:20 +02:00
parent e72fa567a3
commit f68527f418

View File

@ -98,8 +98,11 @@ void Grid::setup(cairo_t* context, const cairo_rectangle_t& rect) {
} }
void Grid::configure() { void Grid::configure() {
// do something with _j["key"] _d = _j["dist"];
_wait = _j["wait"];
_fade = _j["fade"];
_border = _j["border"];
_new.bg = Color {_j["bg"]};
} }
int Grid::fps() const { int Grid::fps() const {