dedupe animation frames handling
This commit is contained in:
54
src/mock.rs
54
src/mock.rs
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user