Skip to content

Instantly share code, notes, and snippets.

function fastNoise(canvas) {
canvas.width = 300;
canvas.height = 300;
const totalPixels = canvas.width * canvas.height * 4;
const ctx = canvas.getContext("2d");
const arr = new Uint8ClampedArray(totalPixels);