1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 14:56:47 +02:00

based on idx

This commit is contained in:
Justin Lin
2019-08-25 08:30:56 +08:00
parent b144df1db1
commit b72ae73c2e

View File

@@ -9,9 +9,12 @@
**/
function px_ascii(char, center = false, invert = false) =
let(code = ord(char))
assert(code > 31 && code < 127, "not printable character")
let(
map_vect = [
[" ", [
idx = code - 32,
binaries = [
[// " "
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -20,8 +23,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["!", [
],
[// "!"
0,0,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,
0,0,0,0,1,0,0,0,
@@ -30,8 +33,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["\"", [
],
[// "\""
0,0,0,0,0,0,0,0,
0,0,0,1,0,1,0,0,
0,0,0,1,0,1,0,0,
@@ -40,8 +43,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["#", [
],
[// "#"
0,0,0,0,0,0,0,0,
0,0,1,0,0,1,0,0,
0,1,1,1,1,1,1,0,
@@ -50,8 +53,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,1,0,
0,0,1,0,0,1,0,0,
0,0,0,0,0,0,0,0
]],
["$", [
],
[// "$"
0,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -60,8 +63,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,0,0,1,0,
0,1,1,1,1,1,0,0,
0,0,0,1,0,0,0,0
]],
["%", [
],
[// "%"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,1,1,0,0,
@@ -70,8 +73,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,0,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["&", [
],
[// "&"
0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,
0,1,0,0,1,0,0,0,
@@ -80,8 +83,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,0,0,0,1,0,0,
0,0,1,1,1,0,1,0,
0,0,0,0,0,0,0,0
]],
["'", [
],
[// "'"
0,0,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,
0,0,0,0,1,0,0,0,
@@ -90,8 +93,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["(", [
],
[// "("
0,0,0,0,0,0,0,0,
0,0,0,1,1,1,0,0,
0,0,1,1,1,0,0,0,
@@ -100,8 +103,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,0,0,0,
0,0,0,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
[")", [
],
[// ")"
0,0,0,0,0,0,0,0,
0,0,1,1,1,0,0,0,
0,0,0,1,1,1,0,0,
@@ -110,8 +113,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,1,0,0,
0,0,1,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["*", [
],
[// "*"
0,0,0,0,0,0,0,0,
0,1,0,1,0,1,0,0,
0,0,1,1,1,0,0,0,
@@ -120,8 +123,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,0,1,0,1,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["+", [
],
[// "+"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
@@ -130,8 +133,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
[",", [
],
[// ","
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -140,8 +143,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,0,0,0,0
]],
["-", [
],
[// "-"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -150,8 +153,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
[".", [
],
[// "."
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -160,8 +163,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["/", [
],
[// "/"
0,0,0,0,0,0,0,0,
0,0,0,0,0,1,1,0,
0,0,0,0,1,1,0,0,
@@ -170,8 +173,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["0", [
],
[// "0"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -180,8 +183,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["1", [
],
[// "1"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,1,0,0,0,
@@ -190,8 +193,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["2", [
],
[// "2"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -200,8 +203,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["3", [
],
[// "3"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,1,1,0,0,
@@ -210,8 +213,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["4", [
],
[// "4"
0,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,0,
0,0,0,1,1,1,0,0,
@@ -220,8 +223,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,1,0,
0,0,0,0,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["5", [
],
[// "5"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,1,1,0,0,0,0,0,
@@ -230,8 +233,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["6", [
],
[// "6"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,0,0,0,
@@ -240,8 +243,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["7", [
],
[// "7"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,1,1,0,
@@ -250,8 +253,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,0,1,1,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["8", [
],
[// "8"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -260,8 +263,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["9", [
],
[// "9"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -270,8 +273,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,1,1,0,0,
0,0,1,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
[":", [
],
[// ":"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
@@ -280,8 +283,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
[";", [
],
[// ";"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
@@ -290,8 +293,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,0,0,0,0
]],
["<", [
],
[// "<"
0,0,0,0,0,0,0,0,
0,0,0,0,0,1,1,0,
0,0,0,0,1,1,0,0,
@@ -300,8 +303,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,0,1,1,0,0,
0,0,0,0,0,1,1,0
]],
["=", [
],
[// "="
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -310,8 +313,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
[">", [
],
[// ">"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,1,1,0,0,0,0,
@@ -320,8 +323,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,1,1,0,0,0,0,
0,1,1,0,0,0,0,0
]],
["?", [
],
[// "?"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -330,8 +333,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["@", [
],
[// "@"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -340,8 +343,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["A", [
],
[// "A"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,1,1,0,0,
@@ -350,8 +353,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["B", [
],
[// "B"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -360,8 +363,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["C", [
],
[// "C"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -370,8 +373,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["D", [
],
[// "D"
0,0,0,0,0,0,0,0,
0,1,1,1,1,0,0,0,
0,1,1,0,1,1,0,0,
@@ -380,8 +383,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,1,0,0,
0,1,1,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["E", [
],
[// "E"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,1,1,0,0,0,0,0,
@@ -390,8 +393,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["F", [
],
[// "F"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,1,1,0,0,0,0,0,
@@ -400,8 +403,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["G", [
],
[// "G"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,0,
0,1,1,0,0,0,0,0,
@@ -410,8 +413,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["H", [
],
[// "H"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
@@ -420,8 +423,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["I", [
],
[// "I"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,1,1,0,0,0,
@@ -430,8 +433,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["J", [
],
[// "J"
0,0,0,0,0,0,0,0,
0,0,0,1,1,1,1,0,
0,0,0,0,1,1,0,0,
@@ -440,8 +443,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,0,0,1,1,0,0,
0,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0,
]],
["K", [
],
[// "K"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,1,1,0,0,
@@ -450,8 +453,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,1,0,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["L", [
],
[// "L"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
@@ -460,8 +463,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["M", [
],
[// "M"
0,0,0,0,0,0,0,0,
1,1,0,0,0,1,1,0,
1,1,1,0,1,1,1,0,
@@ -470,8 +473,8 @@ function px_ascii(char, center = false, invert = false) =
1,1,0,0,0,1,1,0,
1,1,0,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["N", [
],
[// "N"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,1,0,1,1,0,
@@ -480,8 +483,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["O", [
],
[// "O"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -490,8 +493,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["P", [
],
[// "P"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -500,8 +503,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["Q", [
],
[// "Q"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -510,8 +513,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,0,0,
0,0,1,1,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["R", [
],
[// "R"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
@@ -520,8 +523,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,1,0,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["S", [
],
[// "S"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,0,0,0,
@@ -530,8 +533,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["T", [
],
[// "T"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,1,1,0,0,0,
@@ -540,8 +543,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["U", [
],
[// "U"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
@@ -550,8 +553,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["V", [
],
[// "V"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
@@ -560,8 +563,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["W", [
],
[// "W"
0,0,0,0,0,0,0,0,
1,1,0,0,0,1,1,0,
1,1,0,0,0,1,1,0,
@@ -570,8 +573,8 @@ function px_ascii(char, center = false, invert = false) =
1,1,1,0,1,1,1,0,
1,1,0,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["X", [
],
[// "X"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
@@ -580,8 +583,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["Y", [
],
[// "Y"
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
@@ -590,8 +593,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["Z", [
],
[// "Z"
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,1,1,0,0,
@@ -600,8 +603,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["[", [
],
[// "/"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,0,1,1,0,0,0,0,
@@ -610,8 +613,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["\\", [
],
[// "\\"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,1,1,0,0,0,0,
@@ -620,8 +623,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,1,1,0,
0,0,0,0,0,0,1,0,
0,0,0,0,0,0,0,0
]],
["]", [
],
[// "]"
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,1,1,0,0,
@@ -630,8 +633,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,1,1,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["^", [
],
[// "^"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,1,1,0,0,
@@ -640,8 +643,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["_", [
],
[// "_"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
@@ -650,8 +653,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1
]],
["`", [
],
[// "`"
0,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,
0,0,0,0,1,0,0,0,
@@ -660,18 +663,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["`", [
0,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,
0,0,0,0,1,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["a", [
],
[// "a"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -680,8 +673,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["b", [
],
[// "b"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
@@ -690,8 +683,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["c", [
],
[// "c"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -700,8 +693,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["d", [
],
[// "d"
0,0,0,0,0,0,0,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
@@ -710,8 +703,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["e", [
],
[// "e"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -720,8 +713,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["f", [
],
[// "f"
0,0,0,0,0,0,0,0,
0,0,0,0,1,1,1,0,
0,0,0,1,1,0,0,0,
@@ -730,8 +723,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["g", [
],
[// "g"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -740,8 +733,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,1,0,
0,0,0,0,0,1,1,0,
0,1,1,1,1,1,0,0
]],
["h", [
],
[// "h"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
@@ -750,8 +743,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["i", [
],
[// "i"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0,
@@ -760,8 +753,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["j", [
],
[// "j"
0,0,0,0,0,0,0,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,0,0,0,
@@ -770,8 +763,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,0,1,1,1,1,0,0
]],
["k", [
],
[// "k"
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
@@ -780,8 +773,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,1,0,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["l", [
],
[// "l"
0,0,0,0,0,0,0,0,
0,0,1,1,1,0,0,0,
0,0,0,1,1,0,0,0,
@@ -790,8 +783,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["m", [
],
[// "m"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
@@ -800,8 +793,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,1,0,1,1,
0,1,1,0,0,0,1,1,
0,0,0,0,0,0,0,0
]],
["n", [
],
[// "n"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
@@ -810,8 +803,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["o", [
],
[// "o"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
@@ -820,8 +813,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["p", [
],
[// "p"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
@@ -830,8 +823,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,1,1,1,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0
]],
["q", [
],
[// "q"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,0,
@@ -840,8 +833,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,1,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0
]],
["r", [
],
[// "r"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,0,0,
@@ -850,8 +843,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,0,0,0,0,0,0
]],
["s", [
],
[// "s"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,0,
@@ -860,8 +853,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,1,1,0,
0,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["t", [
],
[// "t"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,1,1,1,1,1,1,0,
@@ -870,8 +863,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,0,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["u", [
],
[// "u"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
@@ -880,8 +873,8 @@ function px_ascii(char, center = false, invert = false) =
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["v", [
],
[// "v"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
@@ -890,8 +883,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["w", [
],
[// "w"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,0,1,1,
@@ -900,8 +893,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,1,0,
0,0,1,1,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["x", [
],
[// "x"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
@@ -910,18 +903,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
0,0,0,0,0,0,0,0
]],
["y", [
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,1,1,0,0,
0,1,1,1,1,0,0,0
]],
["y", [
],
[// "y"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
@@ -930,8 +913,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["z", [
],
[// "z"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,1,1,1,1,1,1,0,
@@ -940,8 +923,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,1,1,1,1,1,1,0,
0,0,0,0,0,0,0,0
]],
["{", [
],
[// "{"
0,0,0,0,0,0,0,0,
0,0,0,1,1,1,0,0,
0,0,1,1,0,0,0,0,
@@ -950,8 +933,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,1,1,0,0,0,0,
0,0,0,1,1,1,0,0,
0,0,0,0,0,0,0,0
]],
["|", [
],
[// "|"
0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
@@ -960,8 +943,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["}", [
],
[// "}"
0,0,0,0,0,0,0,0,
0,0,1,1,1,0,0,0,
0,0,0,0,1,1,0,0,
@@ -970,8 +953,8 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,1,1,0,0,
0,0,1,1,1,0,0,0,
0,0,0,0,0,0,0,0
]],
["~", [
],
[// "~"
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,
@@ -980,9 +963,7 @@ function px_ascii(char, center = false, invert = false) =
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
]]
],
idx = search(char, map_vect)[0]
]
]
)
assert(!is_undef(idx), "Unsupported character")
px_from(map_vect[idx][1], center = center, invert = invert);
px_from(binaries[idx], center = center, invert = invert);