Skip to content

Instantly share code, notes, and snippets.

@PaulBGD
Last active April 9, 2022 16:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save PaulBGD/4604f6073e223133fc9c to your computer and use it in GitHub Desktop.
Save PaulBGD/4604f6073e223133fc9c to your computer and use it in GitHub Desktop.
(function() {
var letters = letters = {
'A': [
[, 1],
[1, , 1],
[1, , 1],
[1, 1, 1],
[1, , 1]
],
'B': [
[1, 1],
[1, , 1],
[1, 1, 1],
[1, , 1],
[1, 1]
],
'C': [
[1, 1, 1],
[1],
[1],
[1],
[1, 1, 1]
],
'D': [
[1, 1],
[1, , 1],
[1, , 1],
[1, , 1],
[1, 1]
],
'E': [
[1, 1, 1],
[1],
[1, 1, 1],
[1],
[1, 1, 1]
],
'F': [
[1, 1, 1],
[1],
[1, 1],
[1],
[1]
],
'G': [
[, 1, 1],
[1],
[1, , 1, 1],
[1, , , 1],
[, 1, 1]
],
'H': [
[1, , 1],
[1, , 1],
[1, 1, 1],
[1, , 1],
[1, , 1]
],
'I': [
[1, 1, 1],
[, 1],
[, 1],
[, 1],
[1, 1, 1]
],
'J': [
[1, 1, 1],
[, , 1],
[, , 1],
[1, , 1],
[1, 1, 1]
],
'K': [
[1, , , 1],
[1, , 1],
[1, 1],
[1, , 1],
[1, , , 1]
],
'L': [
[1],
[1],
[1],
[1],
[1, 1, 1]
],
'M': [
[1, 1, 1, 1, 1],
[1, , 1, , 1],
[1, , 1, , 1],
[1, , , , 1],
[1, , , , 1]
],
'N': [
[1, , , 1],
[1, 1, , 1],
[1, , 1, 1],
[1, , , 1],
[1, , , 1]
],
'O': [
[1, 1, 1],
[1, , 1],
[1, , 1],
[1, , 1],
[1, 1, 1]
],
'P': [
[1, 1, 1],
[1, , 1],
[1, 1, 1],
[1],
[1]
],
'Q': [
[0, 1, 1],
[1, , , 1],
[1, , , 1],
[1, , 1, 1],
[1, 1, 1, 1]
],
'R': [
[1, 1],
[1, , 1],
[1, , 1],
[1, 1],
[1, , 1]
],
'S': [
[1, 1, 1],
[1],
[1, 1, 1],
[, , 1],
[1, 1, 1]
],
'T': [
[1, 1, 1],
[, 1],
[, 1],
[, 1],
[, 1]
],
'U': [
[1, , 1],
[1, , 1],
[1, , 1],
[1, , 1],
[1, 1, 1]
],
'V': [
[1, , , , 1],
[1, , , , 1],
[, 1, , 1],
[, 1, , 1],
[, , 1]
],
'W': [
[1, , , , 1],
[1, , , , 1],
[1, , , , 1],
[1, , 1, , 1],
[1, 1, 1, 1, 1]
],
'X': [
[1, , , , 1],
[, 1, , 1],
[, , 1],
[, 1, , 1],
[1, , , , 1]
],
'Y': [
[1, , 1],
[1, , 1],
[, 1],
[, 1],
[, 1]
],
'Z': [
[1, 1, 1, 1, 1],
[, , , 1],
[, , 1],
[, 1],
[1, 1, 1, 1, 1]
],
'0': [
[1, 1, 1],
[1, , 1],
[1, , 1],
[1, , 1],
[1, 1, 1]
],
'1': [
[, 1],
[, 1],
[, 1],
[, 1],
[, 1]
],
' ': [
[, ,],
[, ,],
[, ,],
[, ,],
[, ,]
]
};
});
@merwok
Copy link

merwok commented Mar 1, 2021

Hello! Would you add a preview of the result (all characters)? I tried the demo site but the canvas went blank when I changed the text (Firefox 78.7.0esr FWIW).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment