1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00

Make emigui fill entire web page

This commit is contained in:
Emil Ernerfeldt
2020-04-23 22:08:42 +02:00
parent 1affa10dee
commit 7459aa60a4
4 changed files with 9 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ impl State {
self.emigui.ui(region);
});
let bg_color = srgba(16, 16, 16, 255);
let bg_color = srgba(0, 0, 0, 0); // Use background css color.
let (output, batches) = self.emigui.end_frame();
self.webgl_painter.paint_batches(
bg_color,