diff --git a/modules/Grid/Grid.cpp b/modules/Grid/Grid.cpp index 8498c1e..7a233d9 100644 --- a/modules/Grid/Grid.cpp +++ b/modules/Grid/Grid.cpp @@ -5,14 +5,6 @@ #include #include -// rectangles have width between 2 and 50 pixels -// rectangles have color black, white, or sand -// background is pastel green -// rectangles are placed on a grid where they're centered on grid points -// grid points have 75 pixels in between -// screensize therefore determines grid, which should be centered -// after some time, a new random setup is chosen, and we animate to the new situation - const std::string black {"#000000"}; const std::string white {"#FFFFFF"}; const std::string sand {"#B69061"}; @@ -136,6 +128,8 @@ void Grid::update() { r.width = random_between(_min_size, _max_size); r.color = sc::random::choice(_colors); } + HSB newbg {random_between(0, 360), 0.16, 0.82}; + _new.bg = newbg; _s = State::wait; } else { animate();