diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-02 11:30:54 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-02 11:31:27 +1300 |
commit | 904afb892686d5c84273c7552b6f7443b0784f3a (patch) | |
tree | 3cd8fe65835d168c5f68215e7fdbdbcf8d3e7a16 /src | |
parent | 8821c9e177bac44b9a0a905cba7981b3efbb0ede (diff) | |
download | colour-904afb892686d5c84273c7552b6f7443b0784f3a.zip |
Move TRANSPARENT definition down to the other colour definitions
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |