1package nft23// Parts. Every row is the left half of the sprite, left-padded with '.' (transparent) to 124// columns, and parts are the rows one after the other. Row i starts at i*12.56const hatTall = "" +7"...........o" +
Functions
not supported for pure packages by the node (vm/qfuncs)
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
// y=0
8"..........oh" + // y=1
9"..........oH" + // y=2
10".........ohH" + // y=3
11".........oHH" + // y=4
12"........ohHH" + // y=5
13"........oHHH" + // y=6
14".......ohHHH" + // y=7
15".......oHHHH" + // y=8
16"......ohHHHH" + // y=9
17"......oHHHHH"// y=10
18
19const brim = "" +
20"....ohHHHHHH" + // y=11
21"....ojjjjjjj"// y=12
22
23const head = "" +
24"......ouuuuu" + // y=13
25"......osWWWs" + // y=14
26".....ossesss" + // y=15
27"....oussessn" + // y=16
28"......osssmn"// y=17
29
30const headBeard = "" +
31".....owWWWvv"// y=18
32
33const headNoBeard = "" +
34"......osssvv" + // y=18
35"......osssuu" + // y=19
36".......ossss" + // y=20
37"........oooo"// y=21
38
39const beardLong = "" +
40".....owWWWWW" + // y=19
41".....owWWWxW" + // y=20
42"......owWWxW" + // y=21
43"......owWxWW" + // y=22
44".......owWxW" + // y=23
45".......owWWW" + // y=24
46"........owWx" + // y=25
47".........owW" + // y=26
48"..........ow"// y=27
49
50const beardPointy = "" +
51".....owWWWWW" + // y=19
52"......owWWWW" + // y=20
53"......owWWxW" + // y=21
54".......owWWW" + // y=22
55".......owWxW" + // y=23
56"........owWW" + // y=24
57"........owWx" + // y=25
58".........owW" + // y=26
59".........owx" + // y=27
60"..........ow"// y=28
61
62const beardRound = "" +
63".....owWWWWW" + // y=19
64".....owWWWWW" + // y=20
65"......owWWWW" + // y=21
66".......owWWx" + // y=22
67"........owWW" + // y=23
68".........owW" + // y=24
69"..........ow"// y=25
70
71const body = "" +
72"....ocCCCCCC" + // y=19
73"...ocCCCCCCC" + // y=20
74"...ocCCCCCCC" + // y=21
75"...ocCCCCCCC" + // y=22
76"..oscCCCCCCC" + // y=23
77"..oucCCCCCCC" + // y=24
78"...okkkkkkky" + // y=25
79"...ocCCCCCCC" + // y=26
80"...odddddddd"// y=27
81
82const boots = "" +
83".....opppppo" + // y=28
84".....opppppo" + // y=29
85".....oqqqqqo" + // y=30
86".....ooooooo"// y=31
87
88// Bent-tip hat, see the spec section 6.1.
89const coneY0 = 2
90
91var coneK = [...]int{1, 1, 2, 2, 3, 3, 4, 4, 5}
92
93// tailSpans are the pixels of the tip, when it falls to the right: row y, from x0 to x1 (inclusive).