Various tail-calls opt
Added auto pos
Housekeeping
Adelie is a slideshow program, written in Uxntal.
You must have the Uxn assembler and emulator.
uxnasm src/adelie.tal bin/adelie.rom
uxnemu bin/adelie.rom slides.txt
If do not wish to assemble it yourself, you can download adelie.rom.
Every parameter besides text and id, is a lowercase hexadecimal byte value. The slides are stored as plain-text in the following format:
SIZE w,h, set sizeNAME text, slide idWAIT, automate slide controlsSTOP, ignore slide controlsLINK w,h id, rectangle link to slideMODE color, set colormodeGOTO x,y, move to absolute positionMOVE x,y, move by relative positionPICT name.tga, draw pictureHEAD text, draw headerTEXT text, draw textFILL color, fill backgroundRECT w,h color, fill rectSIZE 30,1c ( 768 x 448 )
NAME Slide 1
FILL 00
GOTO 04,04
PICT photo.tga
GOTO 03,24
MODE 05
HEAD Header A
MOVE 00,05
TEXT Some text with a linebreak,`and a second line.
NAME Slide 2
FILL 01
MODE 07
RECT 10,50 0a
GOTO 20,20
MODE 03
LINK 10,02 Slide 1
TEXT Return to first slide
STOP
You can change the fill pattern using the PATT operation, the expected values are equal to an ICN tile.
PATT c3 81 18 3c 3c 18 81 c3mouse1 next slidemouse2 draw markermouse3 prev slideleft prev slideright next slidealt, prev slidectrl, next slideshift, toggle link viewTo make a monochrome tga file:
convert -colorspace Gray -resize 704x448 -extent 704x448 -gravity center -background black picture.jpg picture.tga