1
0
Fork 0
forked from wry/wry

render: force black background color for fullscreen nodes

This commit is contained in:
Julian Orth 2024-02-23 15:03:59 +01:00
parent 609f6f99cd
commit 41754e268f
6 changed files with 46 additions and 4 deletions

View file

@ -45,6 +45,13 @@ impl Color {
a: 0.0,
};
pub const SOLID_BLACK: Self = Self {
r: 0.0,
g: 0.0,
b: 0.0,
a: 1.0,
};
pub fn from_gray(g: u8) -> Self {
Self::from_rgb(g, g, g)
}