dedupe animation frames handling

This commit is contained in:
2020-04-29 08:27:35 +01:00
parent 8d8515bb8a
commit 8bd323b8a0
7 changed files with 127 additions and 24 deletions

View File

@@ -25,6 +25,60 @@ pub mod image {
],
}
}
#[inline]
pub fn animation_frames() -> Vec<Image> {
vec![
Image {
pixels: vec![
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
]
},
Image {
pixels: vec![
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
]
},
Image {
pixels: vec![
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
]
},
Image {
pixels: vec![
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
0,0,1,1,0,0,1,1,
0,1,1,0,0,1,1,0,
1,1,0,0,1,1,0,0,
1,0,0,1,1,0,0,1,
]
},
]
}
}
#[inline]