diff options
-rw-r--r-- | demo/demo0.png | bin | 301 -> 319 bytes | |||
-rw-r--r-- | src/gen_tiles.c | 36 |
2 files changed, 18 insertions, 18 deletions
diff --git a/demo/demo0.png b/demo/demo0.png Binary files differindex 82498c6..815d718 100644 --- a/demo/demo0.png +++ b/demo/demo0.png diff --git a/src/gen_tiles.c b/src/gen_tiles.c index 072ac1e..5462ee3 100644 --- a/src/gen_tiles.c +++ b/src/gen_tiles.c @@ -5,7 +5,7 @@ #include "typedef.h" #include "ppm.h" -#define TILES 2 +#define TILES 3 #define TILE_WIDTH 3 #define TILE_HEIGHT 3 #define TILE_SZ ((TILE_WIDTH) * (TILE_HEIGHT)) @@ -13,22 +13,22 @@ FILE *fp; // possible types: X T I -char symetry[TILES] = "IT"; +char symetry[TILES] = "XTXIT"; small_t tiles[TILES][TILE_SZ] = { { - // 0, 0, 0, - // 0, 0, 0, - // 0, 0, 0 - // }, { - // 0, 1, 0, - // 1, 1, 1, - // 0, 0, 0 - // }, { - // 0, 1, 0, - // 1, 1, 1, - // 0, 1, 0 - // },{ + 0, 0, 0, + 0, 0, 0, + 0, 0, 0 + }, { + 0, 1, 0, + 1, 1, 1, + 0, 0, 0 + }, { + 0, 1, 0, + 1, 1, 1, + 0, 1, 0 + },{ 0, 1, 0, 0, 1, 0, 0, 1, 0 @@ -40,9 +40,9 @@ small_t tiles[TILES][TILE_SZ] = { }; small_t tiles_connections[TILES][4] = { - // { 0, 0, 0, 0 }, - // { 1, 1, 1, 0 }, - // { 1, 1, 1, 1 }, + { 0, 0, 0, 0 }, + { 1, 1, 1, 0 }, + { 1, 1, 1, 1 }, { 1, 0, 0, 1 }, { 1, 0, 1, 0 }, }; @@ -95,7 +95,7 @@ void save(small_t *t, small_t *n, int i) for(int x = 0; x < TILE_WIDTH; x++) { set_color(pixels, t, x, y, 0, 255, 0); set_color(pixels, t, x, y, 1, 255, 0); - set_color(pixels, t, x, y, 2, 255, 255); + set_color(pixels, t, x, y, 2, 255, 0); } save_as_ppm(file_name, pixels, TILE_WIDTH, TILE_HEIGHT, 1); |