made rects transparent

This commit is contained in:
Bob Polis 2020-11-24 14:50:19 +01:00
parent 1fb3e1709f
commit 0c2090159f

View File

@ -32,7 +32,7 @@ void RectSaver::update() {
}
void RectSaver::render() {
cairo_set_source_rgb(_c, random01(), random01(), random01());
cairo_set_source_rgba(_c, random01(), random01(), random01(), random01());
cairo_rectangle_t rect {random_rect()};
cairo_rectangle(_c, rect.x, rect.y, rect.width, rect.height);
cairo_fill(_c);