FLAGSHIP by The Orz
256 bytes linux procedural graphics
for Revision 2021 demoparty
32 bit binary.
requirements:
- 32 bits /dev/fb0 with supported resolution
- framebuffer set to display resolution
how to run:
- switch to console with Ctrl+Alt+F2 (Ctrl+Alt+F1 to switch back to X)
- check /dev/fb0 is writable to you (or launch with sudo to bypass this step)
- check /dev/fb0 current resolution with fbset tool
- run `clear` (recommended)
- run the appropriate binary
change graphical terminal resolution:
- check supported resolution with "vbeinfo" in GRUB command prompt
- "GRUB_GFXMODE=WxH" in /etc/default/grub (where W/H is a value)
- sudo update-grub
this is a follow-up of the 64-bit TRUESPACE procedural graphics intro, was too busy trying to improve my C intro framework so didn't had enough time to craft a scene at the time of TRUESPACE (especially since 32 bits ELF didn't work yet) but now i have the time... :) most of the code is C with hand crafted ELF headers
ELF header is taking 48 bytes + ~58 bytes of init code
code by grz built with GCC v11
greetings to all sizecoders
31/03/2021