IN101 project on Conway's Game of Life
|
Header file for a naive implementation of Conway's game of life ppm image printer. More...
Go to the source code of this file.
Functions | |
void | naive_generate_image (universe u, int idx) |
Generate the image corresponding to a universe. Image will be of PPM format and created in the out folder, with the filename idx-XXX.ppm where XXX in the the image index. More... | |
void | naive_generate_image_filename (universe u, char *filename) |
Generate the image corresponding to a universe. Image will be of PPM format. More... | |
Header file for a naive implementation of Conway's game of life ppm image printer.
Naive implementation of the Conway's game of life:
The universe's size if given and constant.
The universe state is recorded using a character list (string) following the convention .
for dead and o
for alive.
API
naive_generate_image
to generate an image corresponding to a universe, with a number as a filename, in the out
foldernaive_generate_image_filename
to generate an image of given filename corresponding to a universe void naive_generate_image | ( | universe | u, |
int | idx | ||
) |
Generate the image corresponding to a universe.
Image will be of PPM format and created in the out
folder, with the filename idx-XXX.ppm
where XXX in the the image index.
u | universe |
idx | image index, used for its filename |
void naive_generate_image_filename | ( | universe | u, |
char * | filename | ||
) |
Generate the image corresponding to a universe.
Image will be of PPM format.
u | universe |
filename |