Skip to content

Instantly share code, notes, and snippets.

View mariotacke's full-sized avatar
💻
Specializing in the outrageous.

Mario Tacke mariotacke

💻
Specializing in the outrageous.
View GitHub Profile
const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&()/\\+<>';
const randomCharacter = charset[Math.floor(Math.random() * charset.length)];
outputContext.fillStyle = `rgb(${r},${g},${b})`;
outputContext.fillText(randomCharacter, x, y);