Skip to content

Instantly share code, notes, and snippets.

View seishuku's full-sized avatar

Matt Williams seishuku

View GitHub Profile
@seishuku
seishuku / bluenoise.c
Last active December 26, 2025 02:07
Fast and simple blue noise image generator
// Build with: #include <math.h>
// clang -O3 -o bluenoise bluenoise.c -lm
//
// It's not perfect, but it's very fast and seems to produce a very usable blue noise image.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define W 256