grovecode
Notes on code, interactive simulations, and the occasional stochastic method. Every visualization runs live in your browser.
// posts
- Jul 23, 2026 Crunching an RGB Image into Two Channels and Three Colors Compress a full-color image to two scalar channels plus three colors — color = A + B·X + C·Y — and watch gradient descent discover the palette live, from a random start.
- Jul 16, 2026 Sampling Uniformly Inside a Circle Rejection sampling from a bounding square, a live Monte Carlo estimate of π, and a heatmap that proves the result is unbiased.