made rects transparent
This commit is contained in:
parent
1fb3e1709f
commit
0c2090159f
@ -32,7 +32,7 @@ void RectSaver::update() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RectSaver::render() {
|
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_t rect {random_rect()};
|
||||||
cairo_rectangle(_c, rect.x, rect.y, rect.width, rect.height);
|
cairo_rectangle(_c, rect.x, rect.y, rect.width, rect.height);
|
||||||
cairo_fill(_c);
|
cairo_fill(_c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user