Skip to content

Instantly share code, notes, and snippets.

cc -O3 voronoi.c
./a.out | mpv --no-correct-pts --fps 30 - # view directly
./a.out | x264 --fps 30 -o voronoi.mp4 /dev/stdin # output video
Source:
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>