rework images as text
This commit is contained in:
134
src/mock.rs
134
src/mock.rs
@@ -1,70 +1,70 @@
|
||||
// pub(crate) mod image {
|
||||
// use crate::image::Image;
|
||||
//
|
||||
// pub fn bg() -> Image {
|
||||
// Image {
|
||||
// name: "bg".to_string(),
|
||||
// pixels: vec![
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// pub fn block() -> Image {
|
||||
// Image {
|
||||
// name: "block".to_string(),
|
||||
// pixels: vec![
|
||||
// 1,1,1,1,1,1,1,1,
|
||||
// 1,0,0,0,0,0,0,1,
|
||||
// 1,0,0,0,0,0,0,1,
|
||||
// 1,0,0,1,1,0,0,1,
|
||||
// 1,0,0,1,1,0,0,1,
|
||||
// 1,0,0,0,0,0,0,1,
|
||||
// 1,0,0,0,0,0,0,1,
|
||||
// 1,1,1,1,1,1,1,1,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// pub fn avatar() -> Image {
|
||||
// Image {
|
||||
// name: "avatar".to_string(),
|
||||
// pixels: vec![
|
||||
// 0,0,0,2,2,0,0,0,
|
||||
// 0,0,0,2,2,0,0,0,
|
||||
// 0,0,0,2,2,0,0,0,
|
||||
// 0,0,2,2,2,2,0,0,
|
||||
// 0,2,2,2,2,2,2,0,
|
||||
// 2,0,2,2,2,2,0,2,
|
||||
// 0,0,2,0,0,2,0,0,
|
||||
// 0,0,2,0,0,2,0,0,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// pub fn cat() -> Image {
|
||||
// Image {
|
||||
// name: "cat".to_string(),
|
||||
// pixels: vec![
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,0,0,0,0,0,0,0,
|
||||
// 0,2,0,2,0,0,0,2,
|
||||
// 0,2,2,2,0,0,0,2,
|
||||
// 0,2,2,2,0,0,2,0,
|
||||
// 0,2,2,2,2,2,0,0,
|
||||
// 0,0,2,2,2,2,0,0,
|
||||
// 0,0,2,0,0,2,0,0,
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
pub(crate) mod image {
|
||||
use crate::image::Image;
|
||||
|
||||
pub fn bg() -> Image {
|
||||
Image {
|
||||
name: "bg".to_string(),
|
||||
pixels: vec![
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
pub fn block() -> Image {
|
||||
Image {
|
||||
name: "block".to_string(),
|
||||
pixels: vec![
|
||||
1,1,1,1,1,1,1,1,
|
||||
1,0,0,0,0,0,0,1,
|
||||
1,0,0,0,0,0,0,1,
|
||||
1,0,0,1,1,0,0,1,
|
||||
1,0,0,1,1,0,0,1,
|
||||
1,0,0,0,0,0,0,1,
|
||||
1,0,0,0,0,0,0,1,
|
||||
1,1,1,1,1,1,1,1,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
pub fn avatar() -> Image {
|
||||
Image {
|
||||
name: "avatar".to_string(),
|
||||
pixels: vec![
|
||||
0,0,0,2,2,0,0,0,
|
||||
0,0,0,2,2,0,0,0,
|
||||
0,0,0,2,2,0,0,0,
|
||||
0,0,2,2,2,2,0,0,
|
||||
0,2,2,2,2,2,2,0,
|
||||
2,0,2,2,2,2,0,2,
|
||||
0,0,2,0,0,2,0,0,
|
||||
0,0,2,0,0,2,0,0,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cat() -> Image {
|
||||
Image {
|
||||
name: "cat".to_string(),
|
||||
pixels: vec![
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,
|
||||
0,2,0,2,0,0,0,2,
|
||||
0,2,2,2,0,0,0,2,
|
||||
0,2,2,2,0,0,2,0,
|
||||
0,2,2,2,2,2,0,0,
|
||||
0,0,2,2,2,2,0,0,
|
||||
0,0,2,0,0,2,0,0,
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) mod palette {
|
||||
use crate::{Palette, Colour};
|
||||
|
||||
Reference in New Issue
Block a user