diff --git a/components/gfx/color.rs b/components/gfx/color.rs index f1f589ef4b7..0bf03bff6dc 100644 --- a/components/gfx/color.rs +++ b/components/gfx/color.rs @@ -24,6 +24,11 @@ pub fn rgba(r: AzFloat, g: AzFloat, b: AzFloat, a: AzFloat) -> AzColor { #[inline] pub fn black() -> AzColor { + AzColor { r: 0.0, g: 0.0, b: 0.0, a: 1.0 } +} + +#[inline] +pub fn transparent_black() -> AzColor { AzColor { r: 0.0, g: 0.0, b: 0.0, a: 0.0 } }