IN101 project on Conway's Game of Life
Functions
naive_pbm_writer.c File Reference

Source code for a naive implementation of Conway's game of life ppm image printer. More...

#include "naive_pbm_writer.h"
Include dependency graph for naive_pbm_writer.c:

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...
 

Detailed Description

Source code for a naive implementation of Conway's game of life ppm image printer.

Author
Victor Colomb (vic.c.nosp@m.ol@h.nosp@m.otmai.nosp@m.l.fr)
Date
2021-03-05

Function Documentation

◆ naive_generate_image()

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.

Parameters
uuniverse
idximage index, used for its filename

◆ naive_generate_image_filename()

void naive_generate_image_filename ( universe  u,
char *  filename 
)

Generate the image corresponding to a universe.
Image will be of PPM format.

Parameters
uuniverse
filename