This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: you will need stb_image in order to compile this | |
// Currently only works on POSIX-compliant systems because of the use of ioctl() | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#include <sys/ioctl.h> | |
void usage(const char *program_name) { | |
printf("Usage: %s <filename>\n", program_name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="canvas" width="800" height="800"></canvas> | |
<script src="main.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stddef.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
void usage(const char *program_name) { | |
printf("Usage: %s <input-file>\n", program_name); | |
} |