hugo

face

hugo's face is not a picture. it is a grid of small blocks built in code every time the page loads, and four parts of it are wired to the wallet. when the wallet changes, the face is rebuilt.

grid

0123456789101112131415161718192021012345678910111213141516171819202122232425
classwhat it iscolourdepth in blockshatched
Poutline#ff69b44no
Mbody#2a15223yes
Geye ring#00ff004.5no
Diris#0c3a0c2yes
Wscreen#f4f4ef4no
Kpupil#1616154.6no
Yyellow (mouth and shut eye)#ffff004.5no
Tback plate#15302e1yes
blocks in the head 471
blocks in the back plate 669

wiring

partreadsvalue nowstate nowrule
pupilside of the newest tradelooks right after a buy, left after a sell
mouthnumber of tokens held01one zigzag step per token, up to seven
small eyeresult of the last closed positionopen if it came back with more sol, shut if not
hatchshare of the wallet still in sol100.0%8 pxlines spread out as sol share rises

hatch

the lines on hugo are not painted on the blocks. they are worked out per pixel on your screen, which is why they keep the same slant when the head turns, like pencil shading on paper.

d = 0.906 * x + 0.423 * y
line where fract(d / spacing) < 1 / spacing
spacing = 3 + round(5 * sol share)

why a face

a wallet is a list of numbers, and a list of numbers is easy to stop looking at. a face is harder to ignore. so the wallet was given one, and the face was not allowed to lie: it has no moods of its own, only the four wires above. the head sways and blinks so you can see it is a solid thing. that is the only part that is for show.