summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f5264f9..58b3777 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,8 +7,6 @@ pub struct Colour {
}
impl Colour {
- pub const TRANSPARENT: Self = Self::rgba(0x00000000);
-
pub const fn rgb(value: u32) -> Self {
Self {
value: value | 0xff000000,
@@ -106,6 +104,7 @@ impl Colour {
}
impl Colour {
+ pub const TRANSPARENT: Self = Self::rgba(0x00000000);
pub const WHITE: Self = Self::rgb(0xffffff);
pub const BLACK: Self = Self::rgb(0x000000);