mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
There are cases where we need opaque black (e.g. border color) and
other cases where we need transparent black (e.g. clearing, root layers).
This commit is contained in:
parent
902c16497c
commit
e1db06475c
1 changed files with 5 additions and 0 deletions
|
@ -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 }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue