From 0c2090159f3eebcc41edaea8554be571f4a47d45 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 24 Nov 2020 14:50:19 +0100 Subject: [PATCH] made rects transparent --- rects/RectSaver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rects/RectSaver.cpp b/rects/RectSaver.cpp index 1634350..ac2e6a0 100644 --- a/rects/RectSaver.cpp +++ b/rects/RectSaver.cpp @@ -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);