nxcgol
An implementation of Conway's Game of Life for the Nintendo Switch
 
Loading...
Searching...
No Matches
Helpers

Functions

int sim_speed_calc (int percent)
 calculate simulation speed based on percentage at 100(%) the usleep time will be 1ms at 1(%) the usleep time will be 100ms
 
void color_to_ansi (Color *c)
 convert r,g,c from Color to ansi escape sequence
 
int active_rows ()
 if show_stats is true we decrement 1 from rows to make room for stats we do this when iterating through the rows
 

Detailed Description

Function Documentation

◆ active_rows()

int active_rows ( )

if show_stats is true we decrement 1 from rows to make room for stats we do this when iterating through the rows

◆ color_to_ansi()

void color_to_ansi ( Color c)

convert r,g,c from Color to ansi escape sequence

◆ sim_speed_calc()

int sim_speed_calc ( int  percent)

calculate simulation speed based on percentage at 100(%) the usleep time will be 1ms at 1(%) the usleep time will be 100ms