diff --git a/demo.html b/demo.html
index 7f11e1f..f5d6879 100644
--- a/demo.html
+++ b/demo.html
@@ -196,1109 +196,749 @@
])))
}
const fonts_decode = {}
-fonts_decode.block36 = (s)=>parseInt(s, 36).toString(3).padStart(sym_a, '0').split('').map(s=>parseInt(s))
-fonts_decode.blockString = (s)=>s.replace(/\s/g, '').padEnd(sym_a, '0').split('').map(s=>parseInt(s))
+// fonts_decode.block36 = (s)=>parseInt(s, 36).toString(3).padStart(sym_a, '0').split('').map(s=>parseInt(s))
+fonts_decode.block = (s)=>s.replace(/\s/g, '').padEnd(sym_a, '0').split('').map(s=>parseInt(s))
+fonts_decode.jag = fonts_decode.block
// const block36 = encode_font(fonts.block)
let fonts = {
jag: {
- missing: [
- 2,0,2,0,2,
- 0,2,0,2,0,
- 2,0,2,0,2,
- 0,2,0,2,0,
- 2,0,2,0,2,
- ],
- ' ': [],
- 0: [
- 0,1,1,1,0,
- 1,0,0,0,1,
- 1,0,2,0,1,
- 1,0,0,0,1,
- 0,1,1,1
- ],
- 1: [
- 0,0,1,0,0,
- 0,1,1,0,0,
- 0,0,1,0,0,
- 0,0,1,0,0,
- 0,1,1,1
- ],
- 2: [
- 1,1,1,1,0,
- 0,0,0,0,1,
- 0,1,1,1,0,
- 1,0,0,0,0,
- 1,1,1,1,1,
- ],
- 3: [
- 1,1,1,1,0,
- 0,0,0,0,1,
- 0,1,1,1,0,
- 0,0,0,0,1,
- 1,1,1,1
- ],
- 4: [
- 0,1,0,0,1,
- 1,0,0,0,1,
- 1,1,1,1,0,
- 0,0,0,0,1,
- 0,0,0,0,1,
- ],
- 5: [
- 1,1,1,1,1,
- 1,0,0,0,0,
- 1,1,1,1,0,
- 0,0,0,0,1,
- 1,1,1,1
- ],
- 6: [
- 0,1,1,1,0,
- 1,0,0,0,0,
- 1,1,1,1,0,
- 1,0,0,0,1,
- 0,1,1,1
- ],
- 7: [
- 1,1,1,1,1,
- 0,0,0,0,1,
- 0,0,0,1,0,
- 0,0,1,0,0,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,1,1,1,1,
- ],
- '%': [
- 1,0,0,0,1,
- 0,0,0,1,0,
- 0,0,1,0,0,
- 0,1,0,0,0,
- 1,0,0,0,1,
- ],
- '^': [
- 0,0,1,0,0,
- 0,1,0,1,0,
- ],
- '&': [
- 0,1,1,0,0,
- 1,0,0,1,1,
- 0,1,1,0,0,
- 1,0,0,1,0,
- 0,1,1,0,1,
- ],
- '*': [
- 0,1,0,1,0,
- 0,0,1,0,0,
- 0,1,0,1
- ],
- '(': [
- 0,0,1,1,0,
- 0,1,0,0,0,
- 0,1,0,0,0,
- 0,1,0,0,0,
- 0,0,1,1,0,
- ],
- ')': [
- 0,1,1,0,0,
- 0,0,0,1,0,
- 0,0,0,1,0,
- 0,0,0,1,0,
- 0,1,1,0,0,
- ],
- '-': [
- 0,0,0,0,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,
- 1,1,1,1,1,
- ],
- '=': [
- 0,0,0,0,0,
- 1,1,1,1,1,
- 0,0,0,0,0,
- 1,1,1,1,1,
- 0,0,0,0,0,
- ],
- '+': [
- 0,0,1,0,0,
- 0,0,1,0,0,
- 1,1,1,1,1,
- 0,0,1,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,0,0,0,0,
- 0,0,1,0,0,
- 0,0,0,0,0,
- 0,0,1
- ],
- '🔋': [
- 0,1,1,1,0,
- 1,1,1,1,1,
- 1,0,0,0,1,
- 1,0,0,0,1,
- 1,1,1,1,1,
- ],
- '█': [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
- },
- block36: {
- "0": "5ed0ylnm",
- "1": "1lq33f70",
- "2": "5dttpvld",
- "3": "5dtquy14",
- "4": "3nw3z0r1",
- "5": "5ect57ld",
- "6": "5ect5ms4",
- "7": "5dtphl01",
- "8": "5ed1p6gv",
- "9": "5ed1or6s",
- "missing": "at74dx6q",
- " ": "0",
- "A": "5ed1p6fs",
- "B": "5cruuds4",
- "C": "5ed0ajyv",
- "D": "5cs20l3c",
- "E": "5ect4d14",
- "F": "5ect4d00",
- "G": "5ecs7gld",
- "H": "3nw3zg01",
- "I": "5dvm44ld",
- "J": "1lwj4s4",
- "K": "3r3wybi1",
- "L": "3ma63dld",
- "M": "5ef5j6g1",
- "N": "5ed0bti1",
- "O": "5ed0btj4",
- "P": "5ed1p690",
- "Q": "5crtjkcd",
- "R": "5ed1p6td",
- "S": "5ect57ld",
- "T": "5dvm44i9",
- "U": "3nw2m33d",
- "V": "3nw3ntti",
- "W": "42d7agld",
- "X": "3o35e84j",
- "Y": "3nw3z299",
- "Z": "5duggvld",
- "%": "3nd957dj",
- "-": "1dcxr",
- ".": "29",
- ":": "24vyvi",
- "_": "3d",
- "🔋": "1r9qb47v",
- "█": "5emavpld"
+missing:`
+20202
+02020
+20202
+02020
+20202
+`,
+' ':'',
+'0':`
+01110
+10001
+10201
+10001
+01110
+`,
+'1':`
+00100
+01100
+00100
+00100
+01110
+`,
+'2':`
+11110
+00001
+01110
+10000
+11111
+`,
+'3':`
+11110
+00001
+01110
+00001
+11110
+`,
+'4':`
+01001
+10001
+11110
+00001
+00001
+`,
+'5':`
+11111
+10000
+11110
+00001
+11110
+`,
+'6':`
+01110
+10000
+11110
+10001
+01110
+`,
+'7':`
+11111
+00001
+00010
+00100
+00100
+`,
+'8':`
+01110
+10001
+01110
+10001
+01110
+`,
+'9':`
+01110
+10001
+01111
+00001
+01110
+`,
+'A':`
+01110
+10001
+11111
+10001
+10001
+`,
+'B':`
+11110
+10001
+11110
+10001
+11110
+`,
+'C':`
+01111
+10000
+10000
+10000
+01111
+`,
+'D':`
+11110
+10001
+10001
+10001
+11110
+`,
+'E':`
+11111
+10000
+11110
+10000
+11111
+`,
+'F':`
+11111
+10000
+11110
+10000
+10000
+`,
+'G':`
+01111,
+10000,
+10111,
+10001,
+01111,
+`,
+'H':`
+10001
+10001
+11111
+10001
+10001
+`,
+'I':`
+11111
+00100
+00100
+00100
+11111
+`,
+'J':`
+00001
+00001
+00001
+10001
+11111
+`,
+'K':`
+10001
+10010
+11100
+10010
+10001
+`,
+'L':`
+10000
+10000
+10000
+10000
+11111
+`,
+'M':`
+11010
+10101
+10101
+10101
+10101
+`,
+'N':`
+10001
+11001
+10101
+10011
+10001
+`,
+'O':`
+01110
+10001
+10001
+10001
+01110
+`,
+'P':`
+11110
+10001
+11110
+10000
+10000
+`,
+'Q':`
+11110
+10010
+10010
+10010
+11111
+`,
+'R':`
+11110
+10001
+11110
+10001
+10001
+`,
+'S':`
+01111
+10000
+01110
+00001
+11110
+`,
+'T':`
+11111
+00100
+00100
+00100
+00100
+`,
+'U':`
+10001
+10001
+10001
+10001
+01110
+`,
+'V':`
+10001
+10001
+10001
+01010
+00100
+`,
+'W':`
+10101
+10101
+10101
+10101
+01010
+`,
+'X':`
+10001
+01010
+00100
+01010
+10001
+`,
+'Y':`
+10001
+01010
+00100
+00100
+00100
+`,
+'Z':`
+11111
+00010
+00100
+01000
+11111
+`,
+'%':`
+10001
+00010
+00100
+01000
+10001
+`,
+'*':`
+01010
+00100
+01010
+`,
+'°':`
+00100
+01010
+00100
+`,
+'-':`
+00000
+00000
+01110
+`,
+'.':`
+00000
+00000
+00000
+00000
+10000
+`,
+':':`
+00000
+00100
+00000
+00100
+`,
+'[':`
+11100
+10000
+10000
+10000
+11100
+`,
+']':`
+00111
+00001
+00001
+00001
+00111
+`,
+'}':`
+01110
+00010
+00011
+00010
+01110
+`,
+'_':`
+00000
+00000
+00000
+00000
+11111
+`,
+'✓':`
+00000
+00001
+00010
+10100
+01000
+`,
+'\\':`
+10000
+01000
+00100
+00010
+00001
+`,
+'':`
+00100
+10110
+01101
+00110
+01101
+10110
+00100
+`,
+'🔋':`
+01110
+11111
+10001
+10001
+11111
+`,
},
- blockString: {
- "0": `
+block: {
+'0':`
11111
10001
10201
10001
11111
`,
- "1": `
+'1':`
01100
00100
00100
00100
00100
`,
- "2": `
+'2':`
11111
00001
11111
10000
11111
`,
- "3": `
+'3':`
11111
00001
01111
00001
11111
`,
- "4": `
+'4':`
10001
10001
11111
00001
00001
`,
- "5": `
+'5':`
11111
10000
11111
00001
11111
`,
- "6": `
+'6':`
11111
10000
11111
10001
11111
`,
- "7": `
+'7':`
11111
00001
00001
00001
00001
`,
- "8": `
+'8':`
11111
10001
11111
10001
11111
`,
- "9": `
+'9':`
11111
10001
11111
00001
00001
`,
- "missing": `
+'missing':`
22222
22202
20202
20222
22222
`,
- " ": `0`,
- "A": `
+' ':`0`,
+'A':`
11111
10001
11111
10001
10001
`,
- "B": `
+'B':`
11110
10010
11111
10001
11111
`,
- "C": `
+'C':`
11111
10001
10000
10001
11111
`,
- "D": `
+'D':`
11110
10011
10001
10011
11110
`,
- "E": `
+'E':`
11111
10000
11110
10000
11111
`,
- "F": `
+'F':`
11111
10000
11110
10000
10000
`,
- "G": `
+'G':`
11111
10000
10111
10001
11111
`,
- "H": `
+'H':`
10001
10001
11111
10001
10001
`,
- "I": `
+'I':`
11111
00100
00100
00100
11111
`,
- "J": `
+'J':`
00001
00001
00001
10001
11111
`,
- "K": `
+'K':`
10010
10010
11111
10001
10001
`,
- "L": `
+'L':`
10000
10000
10000
10000
11111
`,
- "M": `
+'M':`
11111
10101
10101
10101
10101
`,
- "N": `
+'N':`
11111
10001
10001
10001
10001
`,
- "O": `
+'O':`
11111
10001
10001
10001
11111
`,
- "P": `
+'P':`
11111
10001
11111
10000
10000
`,
- "Q": `
+'Q':`
11110
10010
10010
10010
11111
`,
- "R": `
+'R':`
11111
10001
11111
10010
10011
`,
- "S": `
+'S':`
11111
10000
11111
00001
11111
`,
- "T": `
+'T':`
11111
00100
00100
00100
00100
`,
- "U": `
+'U':`
10001
10001
10001
10001
11111
`,
- "V": `
+'V':`
10001
10001
11011
01110
00100
`,
- "W": `
+'W':`
10101
10101
10101
10101
11111
`,
- "X": `
+'X':`
10001
11011
01110
11011
10001
`,
- "Y": `
+'Y':`
10001
10001
11111
00100
00100
`,
- "Z": `
+'Z':`
11111
00011
01110
11000
11111
`,
- "%": `
+'`':`
+00100
+00010
+`,
+'~':`
+00000
+01001
+10101
+10010
+`,
+'!':`
+00100
+00100
+00100
+00000
+00100
+`,
+'@':`
+11111
+10001
+10111
+10101
+10111
+`,
+'#':`
+01010
+11111
+01010
+11111
+01010
+`,
+'$':`
+11111
+10100
+11111
+00101
+11111
+`,
+'%':`
10001
00010
00100
01000
10001
`,
- "-": `
-00000
-00000
-01110
+'^':`
+00100
+01010
+`,
+'&':`
+01100
+10011
+01100
+10010
+01101
+`,
+'*':`
+01010
+00100
+01010
+`,
+'(':`
+00110
+01000
+01000
+01000
+00110
+`,
+')':`
+01100
+00010
+00010
+00010
+01100
+`,
+'=':`
00000
+11111
00000
+11111
`,
- ".": `
+'+':`
+00100
+00100
+11111
+00100
+00100
+`,
+'.':`
00000
00000
00000
00000
10000
`,
- ":": `
+':':`
00000
00100
00000
00100
-00000
`,
- "_": `
+'🔋':`
+01110
+11111
+10001
+10001
+11111
+`,
+'_':`
00000
00000
00000
00000
11111
`,
- "🔋": `
-01110
-11111
-10001
-10001
+'█':`
11111
-`,
- "█": `
11111
11111
11111
11111
-11111`
+`,
},
}
@@ -1464,29 +1104,28 @@
y += 3
{
- let m = 2, x = 1.5, f = 'block'
- str('R', x+=1, y, m, 'red', f)
- str('O', x+=1, y, m, 'orange', f)
- str('Y', x+=1, y, m, 'yellow', f)
- str('G', x+=1, y, m, 'green', f)
- str('C', x+=1, y, m, 'cyan', f)
- str('B', x+=1, y, m, 'blue', f)
- str('I', x+=1, y, m, 'indigo', f)
- str('M', x+=1, y, m, 'magenta', f)
+ let m = 2, dx = 1, x = -1, f = 'block'
+ str('R', x+=dx, y, m, 'red', f)
+ str('O', x+=dx, y, m, 'orange', f)
+ str('Y', x+=dx, y, m, 'yellow', f)
+ str('G', x+=dx, y, m, 'green', f)
+ str('C', x+=dx, y, m, 'cyan', f)
+ str('B', x+=dx, y, m, 'blue', f)
+ str('I', x+=dx, y, m, 'indigo', f)
+ str('M', x+=dx, y, m, 'magenta', f)
+ let s = '█'
+ x = -dx
+ y += 2
+ str(s, x+=dx, y, m, 'red', f)
+ str(s, x+=dx, y, m, 'orange', f)
+ str(s, x+=dx, y, m, 'yellow', f)
+ str(s, x+=dx, y, m, 'green', f)
+ str(s, x+=dx, y, m, 'cyan', f)
+ str(s, x+=dx, y, m, 'blue', f)
+ str(s, x+=dx, y, m, 'indigo', f)
+ str(s, x+=dx, y, m, 'magenta', f)
}
- // {
- // let y = 23, m = 10, x = .3, s = '█', f = 'block'
- // str(s, x+=.2, y, m, 'red', f)
- // str(s, x+=.2, y, m, 'orange', f)
- // str(s, x+=.2, y, m, 'yellow', f)
- // str(s, x+=.2, y, m, 'green', f)
- // str(s, x+=.2, y, m, 'cyan', f)
- // str(s, x+=.2, y, m, 'blue', f)
- // str(s, x+=.2, y, m, 'indigo', f)
- // str(s, x+=.2, y, m, 'magenta', f)
- // }
-
const ms_day = 864e5
const ms_centiday = 864e3
const weathers = ['CLOUD', 'SNOW', 'FOG', 'RAIN', 'FAIR', 'SUNNY']
@@ -1495,7 +1134,6 @@
// const s = round(temperature + 1) +'°F'
const s = round((temperature-32)/1.8)+'°C'
str(s.slice(0, 4) + ' ' + weather, 0, y+=3, 2, 'weather_'+weather)
- y += 3
for(var i=1; i < 7; ++i){
const temperature = i*100/6-.01
const s = round(temperature + 1) +'°F'