Skip to content

Instantly share code, notes, and snippets.

@mariotacke mariotacke/medium.js
Created Jul 11, 2019

What would you like to do?
const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&()/\\+<>';
const randomCharacter = charset[Math.floor(Math.random() * charset.length)];
outputContext.fillStyle = `rgb(${r},${g},${b})`;
outputContext.fillText(randomCharacter, x, y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.