aboutsummaryrefslogtreecommitdiff
path: root/src/gen_tiles.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-09 11:19:23 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-09 11:19:23 +0300
commitb91c09a43b3191d719781fe717fc6d28fec58029 (patch)
tree6355cc29f8fb9569e2d407d63b4fcc35cf83d2b8 /src/gen_tiles.c
parenta68cc52b5c5d1c104de8d675b90816aaa39f4ace (diff)
works
Diffstat (limited to 'src/gen_tiles.c')
-rw-r--r--src/gen_tiles.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/gen_tiles.c b/src/gen_tiles.c
index 87e50bd..3133805 100644
--- a/src/gen_tiles.c
+++ b/src/gen_tiles.c
@@ -31,15 +31,21 @@ int tile_4[9] = {
1, 1, 1,
0, 1, 0
};
+int tile_5[9] = {
+ 0, 1, 0,
+ 1, 1, 1,
+ 0, 1, 0
+};
void gen()
{
mkdir("files/", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
- save_as_ppm("files/tile_0.ppm", tile_0, 3, 3);
- save_as_ppm("files/tile_1.ppm", tile_1, 3, 3);
- save_as_ppm("files/tile_2.ppm", tile_2, 3, 3);
- save_as_ppm("files/tile_3.ppm", tile_3, 3, 3);
- save_as_ppm("files/tile_4.ppm", tile_4, 3, 3);
+ save_as_ppm("files/tile_0.ppm", tile_0, 3, 3, 1);
+ save_as_ppm("files/tile_1.ppm", tile_1, 3, 3, 1);
+ save_as_ppm("files/tile_2.ppm", tile_2, 3, 3, 1);
+ save_as_ppm("files/tile_3.ppm", tile_3, 3, 3, 1);
+ save_as_ppm("files/tile_4.ppm", tile_4, 3, 3, 1);
+ save_as_ppm("files/tile_5.ppm", tile_5, 3, 3, 1);
}
int main(void)