preparation
This commit is contained in:
@@ -35,6 +35,10 @@ impl<T: ColorNum> Color<T> {
|
||||
self.a = a;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn as_arr(self) -> [T; 4] {
|
||||
[self.r, self.g, self.b, self.a]
|
||||
}
|
||||
}
|
||||
|
||||
pub trait ColorNum {
|
||||
|
||||
Reference in New Issue
Block a user