summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2024-10-02 11:30:54 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2024-10-02 11:31:27 +1300
commit904afb892686d5c84273c7552b6f7443b0784f3a (patch)
tree3cd8fe65835d168c5f68215e7fdbdbcf8d3e7a16
parent8821c9e177bac44b9a0a905cba7981b3efbb0ede (diff)
downloadcolour-904afb892686d5c84273c7552b6f7443b0784f3a.zip
Move TRANSPARENT definition down to the other colour definitions
-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);