From 904afb892686d5c84273c7552b6f7443b0784f3a Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 2 Oct 2024 11:30:54 +1300 Subject: Move TRANSPARENT definition down to the other colour definitions --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib.rs') 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); -- cgit v1.2.3-70-g09d2