mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Impl byte size function for Color (#1141)
This commit is contained in:
parent
974a37f127
commit
a1b63811ba
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ impl Pixel for Color {
|
|||
fn from_bytes(bytes: &[u8]) -> Self {
|
||||
Color::from_rgba8_srgb(bytes[0], bytes[1], bytes[2], bytes[3])
|
||||
}
|
||||
fn byte_size() -> usize {
|
||||
4
|
||||
}
|
||||
}
|
||||
|
||||
impl Alpha for Color {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue