-
Notifications
You must be signed in to change notification settings - Fork 18
/
assets.ts
3622 lines (3506 loc) · 127 KB
/
assets.ts
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace microcode {
let extraImage: Image = null
//% shim=TD_NOOP
function extraSamples(name: string) {
if (name == "clap_lights") extraImage = icondb.sampleClapLights
if (name == "firefly") extraImage = icondb.sampleFirefly
if (name == "flashing_heart") extraImage = icondb.sampleFlashingHeart
// if (name == "dice") extraImage = icondb.sampleDice // nice icon, don't delete, but not currently used
if (name == "rock_paper_scissors")
extraImage = icondb.sampleRockPaperScissors
if (name == "teleport_duck") extraImage = icondb.sampleTeleportDuck
if (name == "pet_hamster") extraImage = icondb.samplePetHamster
if (name == "heads_tails") extraImage = icondb.sampleHeadsOrTails
if (name == "reaction_time") extraImage = icondb.sampleReactionTime
if (name == "hot_potato") extraImage = icondb.sampleHotPotato
if (name == "clap_lights") extraImage = icondb.sampleClapLights
if (name == "railroad_crossing")
extraImage = icondb.sampleRailCrossingLight
}
function carImages(name: string) {
if (name == TID_ACTUATOR_CAR) return icondb.car
if (name == TID_MODIFIER_CAR_FORWARD) return icondb.car_forward
if (name == TID_MODIFIER_CAR_REVERSE) return icondb.car_reverse
if (name == TID_MODIFIER_CAR_TURN_LEFT) return icondb.car_left_turn
if (name == TID_MODIFIER_CAR_TURN_RIGHT) return icondb.car_right_turn
if (name == TID_MODIFIER_CAR_STOP) return icondb.car_stop
if (name == TID_MODIFIER_CAR_FORWARD_FAST)
return icondb.car_forward_fast
if (name == TID_MODIFIER_CAR_SPIN_LEFT) return icondb.car_left_spin
if (name == TID_MODIFIER_CAR_SPIN_RIGHT) return icondb.car_right_spin
if (name == TID_MODIFIER_CAR_LED_COLOR_1) return icondb.tile_color_red
if (
name == TID_MODIFIER_CAR_LED_COLOR_2 ||
name == TID_MODIFIER_ON ||
name == TID_FILTER_ON
)
return icondb.tile_color_green
if (name == TID_MODIFIER_CAR_LED_COLOR_3) return icondb.tile_color_blue
if (
name == TID_MODIFIER_CAR_LED_COLOR_4 ||
name == TID_MODIFIER_OFF ||
name == TID_FILTER_OFF
)
return icondb.tile_color_black
if (name == TID_MODIFIER_CAR_ARM_OPEN) return icondb.arm_open
if (name == TID_MODIFIER_CAR_ARM_CLOSE) return icondb.arm_close
if (name == TID_SENSOR_CAR_WALL) return icondb.car_wall
if (name == TID_SENSOR_LINE) return icondb.line_sensor
if (name == TID_FILTER_LINE_LEFT) return icondb.line_left_on
if (name == TID_FILTER_LINE_RIGHT) return icondb.line_right_on
if (name == TID_FILTER_LINE_BOTH) return icondb.line_both_on
if (name == TID_FILTER_LINE_NEITHER) return icondb.line_neither_on
if (name == TID_FILTER_LINE_NEITHER_LEFT)
return icondb.line_none_from_left
if (name == TID_FILTER_LINE_NEITHER_RIGHT)
return icondb.line_none_from_right
return null
}
// TODO: factor out all the jacdac stuff into separate file/class
// TODO: so we can generate different builds
function jacdacImages(name: string) {
if (name == TID_FILTER_KITA_KEY_1) return icondb.kita_key_1
if (name == TID_FILTER_KITA_KEY_2) return icondb.kita_key_2
if (name == TID_SENSOR_MAGNET) return icondb.magnet
if (name == TID_SENSOR_SLIDER) return icondb.kita_slider
if (name == TID_SENSOR_ROTARY) return icondb.kita_rotary
if (name == TID_FILTER_ROTARY_LEFT) return icondb.kita_rotary_left
if (name == TID_FILTER_ROTARY_RIGHT) return icondb.kita_rotary_right
if (name == TID_ACTUATOR_RGB_LED) return icondb.rgbLed
if (name == TID_MODIFIER_RGB_LED_COLOR_1) return icondb.tile_color_red
if (name == TID_MODIFIER_RGB_LED_COLOR_2) return icondb.tile_color_green
if (name == TID_MODIFIER_RGB_LED_COLOR_3) return icondb.tile_color_blue
if (name == TID_MODIFIER_RGB_LED_COLOR_4)
return icondb.tile_color_magenta
if (name == TID_MODIFIER_RGB_LED_COLOR_5)
return icondb.tile_color_yellow
if (name == TID_MODIFIER_RGB_LED_COLOR_6) return icondb.tile_color_black
if (name == TID_MODIFIER_RGB_LED_COLOR_RAINBOW)
return icondb.tile_rainbow
if (name == TID_MODIFIER_RGB_LED_COLOR_SPARKLE)
return icondb.tile_sparkle
if (name == TID_ACTUATOR_SERVO_SET_ANGLE) return icondb.servo_set_angle
if (name == TID_ACTUATOR_SERVO_POWER) return icondb.servo_power
if (name == TID_ACTUATOR_RELAY) return icondb.relay
if (name == TID_SENSOR_LIGHT) return icondb.light_sensor
if (name == TID_SENSOR_DISTANCE) return icondb.distance_sensor
if (name == TID_SENSOR_MOISTURE) return icondb.soil_moisture
if (name == TID_SENSOR_REFLECTED) return icondb.reflected_light_sensor
return null
}
export class icons {
public static get(name: string, nullIfMissing = false): Image {
// editor icons
if (name == "delete") return icondb.btn_delete
if (name == "plus") return icondb.btn_plus
if (name == "arith_plus") return icondb.arith_plus
if (name == "arith_equals") return icondb.arith_equals
if (name == "when_insertion_point")
return icondb.btn_when_insertion_point
if (name == "do_insertion_point")
return icondb.btn_do_insertion_point
if (name == "rule_arrow") return icondb.rule_arrow
if (name == "rule_handle") return icondb.rule_handle
if (name == "edit_program") return icondb.largeEditIcon
if (name == "new_program") return icondb.largeNewProgramIcon
if (name == "MISSING") return icondb.MISSING
if (name == "disk") return icondb.disk
if (name == "disk1") return icondb.disk1
if (name == "disk2") return icondb.disk2
if (name == "disk3") return icondb.disk3
if (name == "largeDisk") return icondb.largeDiskIcon
// basic colors led editor
if (name == "solid_red") return icondb.solid_red
if (name == "solid_black") return icondb.solid_black
if (name == "note_on") return icondb.note_on
if (name == "note_off") return icondb.note_off
// sample icons
if (name == "smiley_buttons") return icondb.sampleSmileyButtons
// pages
if (name == TID_SENSOR_START_PAGE) return icondb.tile_start_page
if (name == TID_ACTUATOR_SWITCH_PAGE) return icondb.tile_switch_page
if (name == TID_MODIFIER_PAGE_1) return icondb.tile_page_1
if (name == TID_MODIFIER_PAGE_2) return icondb.tile_page_2
if (name == TID_MODIFIER_PAGE_3) return icondb.tile_page_3
if (name == TID_MODIFIER_PAGE_4) return icondb.tile_page_4
if (name == TID_MODIFIER_PAGE_5) return icondb.tile_page_5
// looping
if (name == TID_MODIFIER_LOOP) return icondb.loop
// variables
if (name == TID_SENSOR_CUP_X_WRITTEN) return icondb.cupXwritten
if (name == TID_SENSOR_CUP_Y_WRITTEN) return icondb.cupYwritten
if (name == TID_SENSOR_CUP_Z_WRITTEN) return icondb.cupZwritten
if (name == TID_FILTER_CUP_X_READ) return icondb.cupXread
if (name == TID_FILTER_CUP_Y_READ) return icondb.cupYread
if (name == TID_FILTER_CUP_Z_READ) return icondb.cupZread
if (name == TID_ACTUATOR_CUP_X_ASSIGN) return icondb.cupXassign
if (name == TID_ACTUATOR_CUP_Y_ASSIGN) return icondb.cupYassign
if (name == TID_ACTUATOR_CUP_Z_ASSIGN) return icondb.cupZassign
if (name == TID_MODIFIER_CUP_X_READ) return icondb.cupXread
if (name == TID_MODIFIER_CUP_Y_READ) return icondb.cupYread
if (name == TID_MODIFIER_CUP_Z_READ) return icondb.cupZread
// numbers
if (name == TID_MODIFIER_RANDOM_TOSS) return icondb.diceToss
if (name == TID_FILTER_COIN_1) return icondb.blocks1
if (name == TID_FILTER_COIN_2) return icondb.blocks2
if (name == TID_FILTER_COIN_3) return icondb.blocks3
if (name == TID_FILTER_COIN_4) return icondb.blocks4
if (name == TID_FILTER_COIN_5) return icondb.blocks5
if (name == TID_MODIFIER_COIN_1) return icondb.blocks1
if (name == TID_MODIFIER_COIN_2) return icondb.blocks2
if (name == TID_MODIFIER_COIN_3) return icondb.blocks3
if (name == TID_MODIFIER_COIN_4) return icondb.blocks4
if (name == TID_MODIFIER_COIN_5) return icondb.blocks5
// micro:bit sensors
if (name == TID_SENSOR_ACCELEROMETER) return icondb.accelerometer
if (name == TID_SENSOR_TIMER) return icondb.tile_timer
if (name == TID_SENSOR_RADIO_RECEIVE) return icondb.radio_receive
if (name == TID_SENSOR_PRESS) return icondb.finger_press
if (name == TID_SENSOR_RELEASE) return icondb.finger_release
if (name == TID_SENSOR_MICROPHONE) return icondb.microphone
if (name == TID_SENSOR_TEMP) return icondb.thermometer
if (name == TID_SENSOR_LED_LIGHT) return icondb.led_light_sensor
// micro:bit filters
if (name == TID_FILTER_LOGO) return icondb.microbit_logo
if (name == TID_FILTER_PIN_0) return icondb.tile_pin_0
if (name == TID_FILTER_PIN_1) return icondb.tile_pin_1
if (name == TID_FILTER_PIN_2) return icondb.tile_pin_2
if (name == TID_FILTER_BUTTON_A) return icondb.tile_button_a
if (name == TID_FILTER_BUTTON_B) return icondb.tile_button_b
if (name == TID_FILTER_TIMESPAN_SHORT)
return icondb.tile_timespan_short
if (name == TID_FILTER_TIMESPAN_LONG)
return icondb.tile_timespan_long
if (name == TID_FILTER_TIMESPAN_VERY_LONG)
return icondb.tile_timespan_fiveSeconds
if (name == TID_FILTER_TIMESPAN_RANDOM)
return icondb.tile_timespan_random
if (name == TID_FILTER_LOUD) return icondb.speaker
if (name == TID_FILTER_TEMP_WARMER) return icondb.temp_warmer
if (name == TID_FILTER_TEMP_COLDER) return icondb.temp_colder
if (name == TID_FILTER_ACCEL_SHAKE) return icondb.moveShake
if (name == TID_FILTER_ACCEL_TILT_UP) return icondb.moveTiltUp
if (name == TID_FILTER_ACCEL_TILT_DOWN) return icondb.moveTiltDown
if (name == TID_FILTER_ACCEL_TILT_LEFT) return icondb.moveTiltLeft
if (name == TID_FILTER_ACCEL_TILT_RIGHT) return icondb.moveTiltRight
if (name == TID_FILTER_ACCEL_FACE_UP) return icondb.moveFaceUp
if (name == TID_FILTER_ACCEL_FACE_DOWN) return icondb.moveFaceDown
// micro:bit actuators
if (name == TID_ACTUATOR_PAINT) return icondb.showScreen
if (name == TID_ACTUATOR_SHOW_NUMBER) return icondb.showNumber
if (name == TID_ACTUATOR_RADIO_SEND) return icondb.radio_send
if (name == TID_ACTUATOR_RADIO_SET_GROUP)
return icondb.radio_set_group
if (name == TID_ACTUATOR_SPEAKER) return icondb.speakerFun
if (name == TID_ACTUATOR_MUSIC) return icondb.music
// micro:bit modifiers
if (name == TID_MODIFIER_ICON_EDITOR) return icondb.iconEditor
if (name == TID_MODIFIER_MELODY_EDITOR) return icondb.melodyEditor
if (name == TID_MODIFIER_EMOJI_GIGGLE) return icondb.soundGiggle
if (name == TID_MODIFIER_EMOJI_HAPPY) return icondb.soundHappy
if (name == TID_MODIFIER_EMOJI_HELLO) return icondb.soundHello
if (name == TID_MODIFIER_EMOJI_MYSTERIOUS)
return icondb.soundMysterious
if (name == TID_MODIFIER_EMOJI_SAD) return icondb.soundSad
if (name == TID_MODIFIER_EMOJI_SLIDE) return icondb.soundSlide
if (name == TID_MODIFIER_EMOJI_SOARING) return icondb.soundSoaring
if (name == TID_MODIFIER_EMOJI_SPRING) return icondb.soundSpring
if (name == TID_MODIFIER_EMOJI_TWINKLE) return icondb.soundTwinkle
if (name == TID_MODIFIER_EMOJI_YAWN) return icondb.soundYawn
if (name == TID_MODIFIER_TEMP_READ) return icondb.thermometer
if (name == TID_MODIFIER_RADIO_VALUE) return icondb.radio_value
// micro:bit car
const car = carImages(name)
if (car) return car
const jacdac = jacdacImages(name)
if (jacdac) return jacdac
extraImage = null
extraSamples(name) // only for web app
if (extraImage) return extraImage
if (nullIfMissing) return null
return icondb.MISSING
}
}
export const wordLogo = img`
.111111.......111111...1111.......................................................1111111.................................1111..................
11bbbbbb.....11bbbbbb.11bbbb....................................................111bbbbbbb1..............................11bbbb.................
1bbbbbbbb...11bbbbbbbf1bbbbbf..................................................11bbbbbbbbbbb.............................1bbbbbf................
1bbbbbbbbb.11bbbbbbbbf1bbbbbf.................................................11bbbbbbbbbbbbb............................1bbbbbf................
1bbbbbbbbbb1bbbbbbbbbf1bbbbbf................................................11bbbbbbbbbbbbbbb...........................1bbbbbf................
1bbbbbbbbbbbbbbbbbbbbf.bbbbff...............................................11bbbbbbbbbbbbbbbbf..........................1bbbbbf................
1bbbbbbbbbbbbbbbbbbbbf..ffff.....1111111......1111...111.......1111111......1bbbbbbbbbbbbbbbbbb.....1111111.........111111bbbbbf....1111111.....
1bbbbbbbbbbbbbbbbbbbbf.1111....111bbbbbbb1...11bbbb.11bbb....111bbbbbbb1...11bbbbbbbfffbbbbbbbbf..111bbbbbbb1.....111bbbbbbbbbbf..111bbbbbbb1...
1bbbbbbbbbbbbbbbbbbbbf11bbbb..11bbbbbbbbbbb..1bbbbbb1bbbbb..11bbbbbbbbbbb..1bbbbbbbff...bbbbbbbf.11bbbbbbbbbbb...11bbbbbbbbbbbbf.11bbbbbbbbbbb..
1bbbbbbfbbbbbfbbbbbbbf1bbbbbf.1bbbbbbbbbbbbf.1bbbbbbbbbbbbf.1bbbbbbbbbbbbf.1bbbbbbff.....bbbbbff.1bbbbbbbbbbbbf..1bbbbbbbbbbbbbf.1bbbbbbbbbbbbf.
1bbbbbbf.bbbff1bbbbbbf1bbbbbf11bbbbbbbbbbbbb.1bbbbbbbbbbbbf11bbbbbbbbbbbbb.1bbbbbbf.......fffff.11bbbbbbbbbbbbb.11bbbbbbbbbbbbbf11bbbbfffbbbbbb.
1bbbbbbf..fff.1bbbbbbf1bbbbbf1bbbbbfffbbbbbbf1bbbbbfffbbbff1bbbbbfffbbbbbbf1bbbbbbf......11111..1bbbbbfffbbbbbbf1bbbbbfffbbbbbbf1bbbbff...bbbbbf
1bbbbbbf......1bbbbbbf1bbbbbf1bbbbff...bbbbff1bbbbbf...fff.1bbbbff...bbbbbf1bbbbbbb.....11bbbbb.1bbbbff...bbbbbf1bbbbff..1bbbbbf1bbbbb11111bbbbf
1bbbbbbf......1bbbbbbf1bbbbbf1bbbbf.....ffff.1bbbbbf.......1bbbbf....1bbbbf1bbbbbbbb...11bbbbbbf1bbbbf....1bbbbf1bbbbf...1bbbbbf1bbbbbbbbbbbbbbf
1bbbbbbf......1bbbbbbf1bbbbbf1bbbbf....1111..1bbbbbf.......1bbbbf....1bbbbf.bbbbbbbbb111bbbbbbbf1bbbbf....1bbbbf1bbbbf...1bbbbbf1bbbbbbbbbbbbbff
1bbbbbbf......1bbbbbbf1bbbbbf1bbbbb...11bbbb.1bbbbbf.......1bbbbb...11bbbbf.1bbbbbbbbbbbbbbbbbff1bbbbb...11bbbbf1bbbbb...1bbbbbf1bbbbffffffffff.
1bbbbbbf......1bbbbbbf1bbbbbf1bbbbbb111bbbbbf1bbbbbf.......1bbbbbb111bbbbbf..bbbbbbbbbbbbbbbbbf.1bbbbbb111bbbbbf1bbbbbb111bbbbbf1bbbbb..........
1bbbbbbf......1bbbbbbf1bbbbbf.bbbbbbbbbbbbbff1bbbbbf........bbbbbbbbbbbbbff...bbbbbbbbbbbbbbbff..bbbbbbbbbbbbbff.bbbbbbbbbbbbbbf.bbbbbb11111....
1bbbbbbf......1bbbbbbf1bbbbbf.1bbbbbbbbbbbbf.1bbbbbf........1bbbbbbbbbbbbf.....bbbbbbbbbbbbbff...1bbbbbbbbbbbbf..1bbbbbbbbbbbbbf.1bbbbbbbbbbb...
1bbbbbbf......1bbbbbbf1bbbbbf..bbbbbbbbbbbff.1bbbbbf.........bbbbbbbbbbbff......bbbbbbbbbbbff.....bbbbbbbbbbbff...bbbbbbbbbbbbbf..bbbbbbbbbbbf..
.bbbbbff.......bbbbbff.bbbbff...fbbbbbbbfff...bbbbff..........fbbbbbbbfff........fbbbbbbbfff.......fbbbbbbbfff.....fbbbbbbbbbbff...fbbbbbbbbff..
..fffff.........fffff...ffff......fffffff......ffff.............fffffff............fffffff...........fffffff.........ffffffffff......ffffffff...
`
export const microbitLogo = img`
............................
......5555555555555555......
....55555555555555555555....
...5554444444444444444555...
..5554.................555..
..554...................554.
.554....55........55.....554
.55....5555......5555....554
.55....55554.....55554...554
.55.....5544......5544...554
..55.....44........44...5544
..555..................5554.
...555................55544.
....5555555555555555555544..
.....45555555555555555444...
.......4444444444444444.....
`
export const editorBackground = img`
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888888188888881888888888881888888888888888888888888888888888888888888888888888888888885888888888888888888881888888888888888888818888888888888188
8818888888881888888888888888818188888888888888888818888888881888888888818888888888881888888888588888888888888888888888888888888888888858888888888888888888888888
8888888888888888888888888888881888888888888888888181888888888888888888888888888888888888888888888881888881888888888188888888888888888888888888888888888888888888
8888588888888818888888888888888888888888888888888818888888888888888888888888888888888888888888888888888888888888881818888888888881888888818888888888818888888888
8888888888888888888858888888888888188888888888888888888888888888818888888888888188888888888888888888888888888888888188888888888888888888888888888888888888888888
8888888888888888188888888888888888888881888885888888888888888888888888885888888888888888881888888588888888888888888888888888888888888888888888888588888888888888
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
8886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886888688868886
8686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686868686
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
`
}
namespace icondb {
const note4x3 = img`
. f f .
f c c .
f c c .
`
export function melodyToImage(melody: microcode.Melody) {
const ret = image.create(16, 16)
ret.fill(1)
for (let col = 0; col < microcode.MELODY_LENGTH; col++) {
if (melody.notes[col] === ".") continue
const row = microcode.NUM_NOTES - 1 - parseInt(melody.notes[col])
const color = 15
const ncol = col << 2,
nrow = row * 3 + 1
ret.drawTransparentImage(note4x3, ncol, nrow)
}
return ret
}
// - upscale 5x5 image to 16 x 16, add halo
export function renderMicrobitLEDs(led55: Image) {
const ret = image.create(16, 16)
ret.fill(15)
for (let row = 0; row < 5; row++) {
for (let col = 0; col < 5; col++) {
const on = led55.getPixel(row, col)
if (!on) continue
const color = 0x2
const halo = 0xe
const nrow = 1 + row * 3,
ncol = 1 + col * 3
ret.setPixel(nrow, ncol, color)
ret.setPixel(nrow + 1, ncol, color)
ret.setPixel(nrow, ncol + 1, color)
ret.setPixel(nrow + 1, ncol + 1, color)
// halo
/*
ret.setPixel(nrow - 1, ncol, halo)
ret.setPixel(nrow - 1, ncol + 1, halo)
ret.setPixel(nrow + 2, ncol, halo)
ret.setPixel(nrow + 2, ncol + 1, halo)
ret.setPixel(nrow, ncol - 1, halo)
ret.setPixel(nrow + 1, ncol - 1, halo)
ret.setPixel(nrow, ncol + 2, halo)
ret.setPixel(nrow + 1, ncol + 2, halo)
*/
}
}
return ret
}
/*
export const iconEditor = renderMicrobitLEDs(
img`
. . . . .
. 1 . 1 .
. . . . .
1 . . . 1
. 1 1 1 .
`
)
*/
export const iconEditor = img`
f f f f f f f f f f f f f f f f
f f f f f f f f f f f f f f f f
f f f f f f f f f f f f f f f f
f f f f e e f f f f e e f f f f
f f f e 2 2 e f f e 2 2 e f f f
f f f e 2 2 e f f e 2 2 e f f f
f f f f e e f f f f e e f f f f
f f f f f f f f f f f f f f f f
f f f f f f f f f f f f f f f f
f e e f f f f f f f f f f e e f
e 2 2 e f f f f f f f f e 2 2 e
e 2 2 e f f f f f f f f e 2 2 e
f e e f e e f e e f e e f e e f
f f f e 2 2 e 2 2 e 2 2 e f f f
f f f e 2 2 e 2 2 e 2 2 e f f f
f f f f e e f e e f e e f f f f
`
function renderImg(i: Image) {
let r = ""
for (let y = 0; y < i.height; ++y) {
let line = ""
for (let x = 0; x < i.width; ++x)
line += "0123456789abcdef"[i.getPixel(x, y)] + " "
r += line + "\n"
}
console.log(`\nimg\`\n${r}\``)
}
/*
export const melodyEditor = melodyToImage({
notes: "0240",
tempo: 0,
})
*/
export const melodyEditor = img`
1111111111111111
111111111ff11111
11111111fcc11111
11111111fcc11111
1111111111111111
1111111111111111
1111111111111111
11111ff111111111
1111fcc111111111
1111fcc111111111
1111111111111111
1111111111111111
1111111111111111
1ff1111111111ff1
fcc111111111fcc1
fcc111111111fcc1
`
export const disk = img`
. . . . . . . . . . . . . . . .
. . 8 d d d d 8 8 d d 8 . . . .
. . 8 d d d d 8 8 d d 8 8 . . .
. . 8 d d d d 8 8 d d 8 8 8 . .
. . 8 d d d d d d d d 8 8 8 . .
. . 8 8 8 8 8 8 8 8 8 8 8 8 . .
. . 8 8 3 3 3 3 3 3 3 3 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const disk1 = img`
. . . . . . . . . . . . . . . .
. . 8 d d d d 8 8 d d 8 . . . .
. . 8 d d d d 8 8 d d 8 8 . . .
. . 8 d d d d 8 8 d d 8 8 8 . .
. . 8 d d d d d d d d 8 8 8 . .
. . 8 8 8 8 8 8 8 8 8 8 8 8 d .
. . 8 8 3 3 3 3 3 3 3 3 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 1 f 1 1 1 8 8 d .
. . 8 8 1 1 1 f f 1 1 1 8 8 d .
. . 8 8 1 1 1 1 f 1 1 1 8 8 d .
. . 8 8 1 1 1 1 f 1 1 1 8 8 d .
. . 8 8 1 1 1 f f f 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const disk2 = img`
. . . . . . . . . . . . . . . .
. . 8 d d d d 8 8 d d 8 . . . .
. . 8 d d d d 8 8 d d 8 8 . . .
. . 8 d d d d 8 8 d d 8 8 8 . .
. . 8 d d d d d d d d 8 8 8 . .
. . 8 8 8 8 8 8 8 8 8 8 8 8 d .
. . 8 8 3 3 3 3 3 3 3 3 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 f f 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 f 1 1 8 8 d .
. . 8 8 1 1 1 1 f 1 1 1 8 8 d .
. . 8 8 1 1 1 f 1 1 1 1 8 8 d .
. . 8 8 1 1 1 f f f 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const disk3 = img`
. . . . . . . . . . . . . . . .
. . 8 d d d d 8 8 d d 8 . . . .
. . 8 d d d d 8 8 d d 8 8 . . .
. . 8 d d d d 8 8 d d 8 8 8 . .
. . 8 d d d d d d d d 8 8 8 . .
. . 8 8 8 8 8 8 8 8 8 8 8 8 d .
. . 8 8 3 3 3 3 3 3 3 3 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 d .
. . 8 8 1 1 1 f f 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 f 1 1 8 8 d .
. . 8 8 1 1 1 1 f f 1 1 8 8 d .
. . 8 8 1 1 1 1 1 f 1 1 8 8 d .
. . 8 8 1 1 1 f f 1 1 1 8 8 d .
. . 8 8 1 1 1 1 1 1 1 1 8 8 . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const largeDiskIcon = img`
.666666666666666666666666666666.
66666666666666666666666666666666
66666666666666666666666666666666
66666bbbbbbbbbbbbbbbbbbbb6666666
6666bb8cdddddddddddd888c8b666666
6666b88cdddddddc88dd888c88b66666
6666b88cddddddd888dd888c888b6666
6666b88cddddddd888dd888c888b6666
6666b88cddddddd888dd888c888b6666
6666b88cddddddd888dd888c888b6666
6666b88cdddddddddddd888c888b6666
6666b88ccccccccccccccccc888b6666
6666b8888888888888888888888b6666
6666b8888888888888888888888b6666
6666b8833333333333333333888b6666
6666b8833333333333333333888b6666
6666b8811111111111111111888b6666
6666b8811111111111111111888b6666
6666b8811ccccc1111111111888b6666
6666b8811111111111111111888b6666
6666b8811ccc111111111111888b6666
6666b8811111111111111111888b6666
6666b8811ccccccc11111111888b6666
6666b8811111111111111111888b6666
6666b8811111111111111111888b6666
6666b88111111111111111118f8b6666
6666b88111111111111111118f8b6666
6666bb811111111111111111888b6666
66666bbbbbbbbbbbbbbbbbbbbbbb6666
66666666666666666666666666666666
66666666666666666666666666666666
b666666666666666666666666666666b
.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.
`
export const MISSING = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . 2 2 2 2 2 2 2 2 2 2 . . .
. . . 2 2 . . . . . . 2 2 . . .
. . . 2 . 2 . . . . 2 . 2 . . .
. . . 2 . . 2 . . 2 . . 2 . . .
. . . 2 . . . 2 2 . . . 2 . . .
. . . 2 . . . 2 2 . . . 2 . . .
. . . 2 . . 2 . . 2 . . 2 . . .
. . . 2 . 2 . . . . 2 . 2 . . .
. . . 2 2 . . . . . . 2 2 . . .
. . . 2 2 2 2 2 2 2 2 2 2 . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const solid_red = img`
. . . . . . . . . . . . . . . .
. . . 2 2 2 2 2 2 2 2 2 2 . . .
. . 2 2 4 4 4 4 4 4 4 4 2 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 4 4 4 4 4 4 4 4 4 4 2 . .
. . 2 2 4 4 4 4 4 4 4 4 2 2 . .
. . . 2 2 2 2 2 2 2 2 2 2 . . .
. . . . . . . . . . . . . . . .
`
export const solid_black = img`
. . . . . . . . . . . . . . . .
. . . c c c c c c c c c c . . .
. . c c f f f f f f f f c c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c f f f f f f f f f f c . .
. . c c f f f f f f f f c c . .
. . . c c c c c c c c c c . . .
. . . . . . . . . . . . . . . .
`
export const arm_open = img`
. . . . . . . . . . c c c . . .
. . . . . . . . c c b b b c c .
. . . . . . . c b b b b b b b c
. . . . . . c b b b b c c b b c
c c . . c b b b b c c . . c b c
b b c c b b b b c . . . . . c .
b b b b b b c c . . . . . . . .
c f f b b c . . . . . . . . . .
c f f b b c . . . . . . . . . .
b b b b b b c c . . . . . . . .
b b c c b b b b c . . . . . c .
c c . . c b b b b c c . . c b c
. . . . . c c b b b b c c b b c
. . . . . . . c b b b b b b b c
. . . . . . . . c c b b b c c .
. . . . . . . . . . c c c . . .
`
export const arm_close = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . c c c c c c c c c . .
. . . . . c b b b b b b b b c .
. . . . c b b b b b b b b b b c
c c d d b b c c c c c c c c b c
b b b b b b c . . . . . . . c .
c f f b b c . . . . . . . . . .
c f f b b c . . . . . . . . . .
b b b b b b c . . . . . . . c .
c c d d b b c c c c c c c c b c
. . . . c b b b b b b b b b b c
. . . . . c b b b b b b b b c .
. . . . . c c c c c c c c c . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . `
///
/// BUTTON ICONS
///
export const btn_stop = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . f f f f f f f f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f 2 2 2 2 2 2 f . . . .
. . . . f f f f f f f f . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const btn_delete = img`
. . . . . . . . . . . . . . . .
. . . . . . c f f . . . . . . .
. . . . . c . . . f . . . . . .
. . . . c c c f f f f . . . . .
. . . c 1 1 d d d b b f . . . .
. . c c c c c f f f f f f . . .
. . . c b c b c b c c f . . . .
. . . c 1 c d c d c b f d . . .
. . . c 1 c d c d c b f d . . .
. . . c 1 c d c d c b f d . . .
. . . c 1 c d c d c b f d . . .
. . . c 1 1 d d d b b f d . . .
. . . c 1 1 d d d b b f d . . .
. . . . c c c f f f f d . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const btn_plus = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f . . . . . .
. . . . . . f 5 5 f . . . . . .
. . . . . . f 5 5 f . . . . . .
. . . f f f f 5 5 f f f f . . .
. . . f 5 5 5 5 5 5 5 5 f . . .
. . . f 5 5 5 5 5 5 5 5 f . . .
. . . f f f f 5 5 f f f f . . .
. . . . . . f 5 5 f . . . . . .
. . . . . . f 5 5 f . . . . . .
. . . . . . f f f f . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const arith_plus = img`
. . . . . . . .
. . . f f . . .
. . . f f . . .
. f f f f f f .
. f f f f f f .
. . . f f . . .
. . . f f . . .
. . . . . . . .
`
export const arith_equals = img`
. . . . . . . .
. f f f f f f .
. f f f f f f .
. . . . . . . .
. . . . . . . .
. f f f f f f .
. f f f f f f .
. . . . . . . .
`
export const loop = img`
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 f f f f 4 4 4 4 4 4 4 4 4
4 4 4 c c c c f 4 4 4 4 4 4 4 4
4 4 4 1 1 1 1 1 f 4 4 4 4 4 4 4
4 4 4 4 4 4 c 1 1 4 1 4 4 4 1 4
4 4 4 4 4 4 4 c 1 4 4 1 4 1 4 4
4 4 4 4 f 4 4 c 1 4 4 4 1 4 4 4
4 4 4 f c 4 f c 1 4 4 1 4 1 4 4
4 4 f c 1 f c 1 1 4 1 4 4 4 1 4
4 4 c 1 1 c 1 1 4 4 4 4 4 4 4 4
4 4 1 1 1 1 1 4 4 4 4 4 4 4 4 4
4 4 4 1 1 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 1 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
`
export const btn_when_insertion_point = img`
dddddddddddddddddd
dcddcddcddcddcddcd
dddddddddddddddddd
dddddddddddddddddd
dcddddddddddddddcd
dddddddddddddddddd
dddddddddddddddddd
dcddddddddddddddcd
dddddddddddddddddd
dddddddddddddddddd
dcddddddddddddddcd
dddddddddddddddddd
dddddddddddddddddd
dcddddddddddddddcd
dddddddddddddddddd
dddddddddddddddddd
dcddcddcddcddcddcd
dddddddddddddddddd
`
export const btn_do_insertion_point = img`
bbbbbbbbbbbbbbbbbb
bdbbdbbdbbdbbdbbdb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
bdbbbbbbbbbbbbbbdb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
bdbbbbbbbbbbbbbbdb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
bdbbbbbbbbbbbbbbdb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
bdbbbbbbbbbbbbbbdb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
bdbbdbbdbbdbbdbbdb
bbbbbbbbbbbbbbbbbb
`
export const rule_arrow = img`
d d d . . . . . . . . . . .
d d d d . . . . . . . . . .
d d d d d . . . . . . . . .
d d d d d d . . . . . . . .
d d d d d d d . . . . . . .
d d d d d d d d . . . . . .
d d d d d d d d d . . . . .
d d d d d d d d d d . . . .
d d d d d d d d d d d . . .
d d d d d d d d d d d d . .
d d d d d d d d d d d d . .
d d d d d d d d d d d . . .
d d d d d d d d d d . . . .
d d d d d d d d d . . . . .
d d d d d d d d . . . . . .
d d d d d d d . . . . . . .
d d d d d d . . . . . . . .
d d d d d . . . . . . . . .
d d d d . . . . . . . . . .
d d d . . . . . . . . . . .
`
export const showScreen = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . 2 4 . .
. . . . 2 . . . . . . 2 4 4 2 .
. . . . 2 . . . . . 2 4 4 2 e .
. 2 . . 2 . . . . 2 4 4 2 e b .
. . 2 . 2 . . . 2 4 4 2 e b . .
. . . . . . . d 4 4 2 e b . . .
. . f f f f f d d 2 e b . . . .
. . f f f f f 2 d d b . . . . .
. . f f 2 f 2 f f b . . . . . .
. . f f f f f f f b . 2 2 2 2 .
. . f 2 f f f 2 f b . . . . . .
. . f f 2 2 2 f f b . 2 . . . .
. . f f f f f f f b . . 2 . . .
. . . b b b b b b b . . . . . .
. . . . . . . . . . . . . . . .
`
export const showNumber = img`
. . . . . . . . . . 4 4 4 4 4 4
. . . . . . . . . 4 5 5 5 5 5 5
. . . . 2 . . . 4 5 4 4 4 4 4 4
. . . . 2 . . . 4 5 4 . . . . .
. 2 . . 2 . . . 4 5 4 . . . . .
. . 2 . 2 . 4 5 5 5 5 5 4 . . .
. . . . . . . 4 5 5 5 4 . . . .
. . f f f f f f 4 5 4 . . . . .
. . f f f 2 2 f f b . . . . . .
. . f f 2 f 2 f f b . . . . . .
. . f 2 f f 2 f f b . 2 2 2 2 .
. . f 2 2 2 2 2 f b . . . . . .
. . f f f f 2 f f b . 2 . . . .
. . f f f f f f f b . . 2 . . .
. . . b b b b b b b . . . . . .
. . . . . . . . . . . . . . . .
`
///
/// GENERIC LANGUAGE TILES (NOT HARDWARE SPECIFIC)
///
export const rule_handle = img`
. f f f f f f f .
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
f 1 1 1 1 1 1 1 f
. f f f f f f f .
`
export const tile_switch_page = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . f f f f . . . . . . .
. . . . f f 9 9 f . . . . . . .
. . . f 9 f 9 9 f d f f f f . .
. . f f f f 9 9 f f f 7 7 f . .
. . f 9 9 9 9 9 f 7 f 7 7 f d .
. . f 9 9 9 9 f f f f 7 7 f d .
. . f 9 9 9 9 f 5 f 7 7 7 f d .
. . f 9 f f f f 5 5 f 7 7 f d .
. . f 9 f 5 5 5 5 5 5 f 7 f d .
. . f f f f f f 5 5 f 7 7 f d .
. . . d d d d f 5 f 7 7 7 f d .
. . . . . . . f f f f f f f d .
. . . . . . . . d d d d d d d .
. . . . . . . . . . . . . . . .
`
export const tile_start_page = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . f f f f . . .
. . . . . . . . f f 7 7 f . . .
. . . . . . . f 7 f 7 7 f d . .
. . . . . . f f f f 7 7 f d . .
. . . . . . f 5 f 7 7 7 f d . .
. . . f f f f 5 5 f 7 7 f d . .
. . . f 5 5 5 5 5 5 f 7 f d . .
. . . f f f f 5 5 f 7 7 f d . .
. . . d d d f 5 f 7 7 7 f d . .
. . . . . . f f f f f f f d . .
. . . . . . . d d d d d d d . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const tile_page_1 = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f f f f . . .
. . . . . f f 9 9 9 9 9 f . . .
. . . . f 9 f 9 9 9 9 9 f . . .
. . . f f f f 9 9 9 9 9 f . . .
. . . f 9 9 9 9 9 9 9 9 f . . .
. . . f 9 9 9 f f 9 9 9 f . . .
. . . f 9 9 9 9 f 9 9 9 f . . .
. . . f 9 9 9 9 f 9 9 9 f . . .
. . . f 9 9 9 9 f 9 9 9 f . . .
. . . f 9 9 9 f f f 9 9 f . . .
. . . f 9 9 9 9 9 9 9 9 f . . .
. . . f f f f f f f f f f . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const tile_page_2 = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f f f f . . .
. . . . . f f 5 5 5 5 5 f . . .
. . . . f 5 f 5 5 5 5 5 f . . .
. . . f f f f 5 5 5 5 5 f . . .
. . . f 5 5 5 5 5 5 5 5 f . . .
. . . f 5 5 5 f f 5 5 5 f . . .
. . . f 5 5 f 5 5 f 5 5 f . . .
. . . f 5 5 5 5 f 5 5 5 f . . .
. . . f 5 5 5 f 5 5 5 5 f . . .
. . . f 5 5 f f f f 5 5 f . . .
. . . f 5 5 5 5 5 5 5 5 f . . .
. . . f f f f f f f f f f . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const tile_page_3 = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f f f f . . .
. . . . . f f 4 4 4 4 4 f . . .
. . . . f 4 f 4 4 4 4 4 f . . .
. . . f f f f 4 4 4 4 4 f . . .
. . . f 4 4 4 4 4 4 4 4 f . . .
. . . f 4 4 4 f f 4 4 4 f . . .
. . . f 4 4 4 4 4 f 4 4 f . . .
. . . f 4 4 4 4 f 4 4 4 f . . .
. . . f 4 4 4 4 4 f 4 4 f . . .
. . . f 4 4 4 f f 4 4 4 f . . .
. . . f 4 4 4 4 4 4 4 4 f . . .
. . . f f f f f f f f f f . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const tile_page_4 = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f f f f . . .
. . . . . f f 3 3 3 3 3 f . . .
. . . . f 3 f 3 3 3 3 3 f . . .
. . . f f f f 3 3 3 3 3 f . . .
. . . f 3 3 3 3 3 3 3 3 f . . .
. . . f 3 3 f 3 f 3 3 3 f . . .
. . . f 3 3 f 3 f 3 3 3 f . . .
. . . f 3 3 f f f f 3 3 f . . .
. . . f 3 3 3 3 f 3 3 3 f . . .
. . . f 3 3 3 3 f 3 3 3 f . . .
. . . f 3 3 3 3 3 3 3 3 f . . .
. . . f f f f f f f f f f . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
export const tile_page_5 = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . f f f f f f f . . .
. . . . . f f 7 7 7 7 7 f . . .
. . . . f 7 f 7 7 7 7 7 f . . .
. . . f f f f 7 7 7 7 7 f . . .
. . . f 7 7 7 7 7 7 7 7 f . . .
. . . f 7 7 f f f f 7 7 f . . .
. . . f 7 7 f 7 7 7 7 7 f . . .
. . . f 7 7 f f f 7 7 7 f . . .
. . . f 7 7 7 7 7 f 7 7 f . . .
. . . f 7 7 f f f 7 7 7 f . . .
. . . f 7 7 7 7 7 7 7 7 f . . .
. . . f f f f f f f f f f . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`
///
/// HARDWARE-SPECIFIC LANGUAGE TILES
///
export const tile_button_a = img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . 8 . . .
. . . . . . . . . . . 8 8 d . .
. . . . . . . . . . 8 8 8 d . .
. . . . . . . . . 8 8 8 8 d . .
. . . . . . . . 8 8 8 8 8 d . .
. . . . . . . 8 8 8 1 8 8 d . .
. . . . . . 8 8 8 1 8 1 8 d . .
. . . . . 8 8 8 8 1 1 1 8 d . .
. . . . 8 8 8 8 8 1 8 1 8 d . .
. . . 8 8 8 8 8 8 1 8 1 8 d . .
. . 8 8 8 8 8 8 8 8 8 8 8 d . .
. . . d d d d d d d d d d d . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .