Skip to content

Instantly share code, notes, and snippets.

View scottstensland's full-sized avatar
💭
You learn more from a person at play than a year of conversation - Plato

Scott Stensland scottstensland

💭
You learn more from a person at play than a year of conversation - Plato
View GitHub Profile
var defaultCellSize = 48 * window.devicePixelRatio;
function createParticles(canvas, width, height, cellSize = defaultCellSize)
{
canvas.width = width;
canvas.height = height;
// defaults
canvas.showCells = false;