Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<script>
function isBitOn(number, index) {
return Boolean(number & (1 << index));
}
window.onload = function() {
var canvas = document.getElementById('canvas');
<!DOCTYPE html>
<html>
<head>
<script>
glyphs = [
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], // padding
[0, 0, 0, 0, 0, 0, 0, 0], // , 32
[8, 8, 8, 8, 8, 0, 8, 0], // !, 33
[20, 20, 20, 0, 0, 0, 0, 0], // ", 34