/
dither.p8.lua
294 lines (259 loc) · 8.11 KB
/
dither.p8.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
-- dither - 8x8.me fill patterns
-- public domain (cc0) by aced
-- setup custom font as 8x8px
poke(0x5600,8,8,8,0,0)
-- 97 'a' bayerdither00
poke(0x5600+(8* 97),
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉa"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.\0\0\0\0\0\0\0\0"
-- fillp(0)
-- 98 'b' bayerdither01
poke(0x5600+(8* 98),
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0, -- ▒▒▒▒▒▒▒▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉb"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.■\0\0\0■\0\0\0"
-- fillp(32768)
-- 99 'c' bayerdither02
poke(0x5600+(8* 99),
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
68, -- ▒▒█▒▒▒█▒
0, -- ▒▒▒▒▒▒▒▒
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
68, -- ▒▒█▒▒▒█▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉc"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.■\0D\0■\0D\0"
-- fillp(32800)
-- 100 'd' bayerdither03
poke(0x5600+(8* 100),
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
0, -- ▒▒▒▒▒▒▒▒
17, -- █▒▒▒█▒▒▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉd"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.■\0U\0■\0U\0"
-- fillp(32928)
-- 101 'e' bayerdither04
poke(0x5600+(8* 101),
85, -- █▒█▒█▒█▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉe"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.U\0U\0U\0U\0"
-- fillp(41120)
-- 102 'f' bayerdither05
poke(0x5600+(8* 102),
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
0, -- ▒▒▒▒▒▒▒▒
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
0 -- ▒▒▒▒▒▒▒▒
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉf"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.U\"U\0U\"U\0"
-- fillp(42144)
-- 103 'g' bayerdither06
poke(0x5600+(8* 103),
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
136, -- ▒▒▒█▒▒▒█
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
136 -- ▒▒▒█▒▒▒█
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉg"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.U\"U☉U\"U☉"
-- fillp(42145)
-- 104 'h' bayerdither07
poke(0x5600+(8* 104),
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
170, -- ▒█▒█▒█▒█
85, -- █▒█▒█▒█▒
34, -- ▒█▒▒▒█▒▒
85, -- █▒█▒█▒█▒
170 -- ▒█▒█▒█▒█
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉh"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.U\"UちU\"Uち"
-- fillp(42149)
-- 105 'i' bayerdither08
poke(0x5600+(8* 105),
85, -- █▒█▒█▒█▒
170, -- ▒█▒█▒█▒█
85, -- █▒█▒█▒█▒
170, -- ▒█▒█▒█▒█
85, -- █▒█▒█▒█▒
170, -- ▒█▒█▒█▒█
85, -- █▒█▒█▒█▒
170 -- ▒█▒█▒█▒█
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉi"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.UちUちUちUち"
-- fillp(42405)
-- 106 'j' bayerdither09
poke(0x5600+(8* 106),
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
170, -- ▒█▒█▒█▒█
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
170 -- ▒█▒█▒█▒█
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉj"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.UめUちUめUち"
-- fillp(44453)
-- 107 'k' bayerdither10
poke(0x5600+(8* 107),
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
238, -- ▒███▒███
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
238 -- ▒███▒███
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉk"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.UめUモUめUモ"
-- fillp(44455)
-- 108 'l' bayerdither11
poke(0x5600+(8* 108),
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
255, -- ████████
85, -- █▒█▒█▒█▒
187, -- ██▒███▒█
85, -- █▒█▒█▒█▒
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉl"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.UめU◝UめU◝"
-- fillp(44463)
-- 109 'm' bayerdither12
poke(0x5600+(8* 109),
85, -- █▒█▒█▒█▒
255, -- ████████
85, -- █▒█▒█▒█▒
255, -- ████████
85, -- █▒█▒█▒█▒
255, -- ████████
85, -- █▒█▒█▒█▒
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉm"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.U◝U◝U◝U◝"
-- fillp(44975)
-- 110 'n' bayerdither13
poke(0x5600+(8* 110),
119, -- ███▒███▒
255, -- ████████
85, -- █▒█▒█▒█▒
255, -- ████████
119, -- ███▒███▒
255, -- ████████
85, -- █▒█▒█▒█▒
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉn"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.w◝U◝w◝U◝"
-- fillp(61359)
-- 111 'o' bayerdither14
poke(0x5600+(8* 111),
119, -- ███▒███▒
255, -- ████████
221, -- █▒███▒██
255, -- ████████
119, -- ███▒███▒
255, -- ████████
221, -- █▒███▒██
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉo"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.w◝ツ◝w◝ツ◝"
-- fillp(61375)
-- 112 'p' bayerdither15
poke(0x5600+(8* 112),
119, -- ███▒███▒
255, -- ████████
255, -- ████████
255, -- ████████
119, -- ███▒███▒
255, -- ████████
255, -- ████████
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉp"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.w◝◝◝w◝◝◝"
-- fillp(61439)
-- 113 'q' bayerdither16
poke(0x5600+(8* 113),
255, -- ████████
255, -- ████████
255, -- ████████
255, -- ████████
255, -- ████████
255, -- ████████
255, -- ████████
255 -- ████████
)
-- setup: ?"⁶!5600⁸x⁸\0\0"
-- spr 0: print"⁶c0ᵉq"for i=0,7do memcpy(i*64,24576+i*64,4)end cstore()
-- magic: ?"⁶.◝◝◝◝◝◝◝◝"
-- fillp(65535)