Sierpinski fractal in 28 bytes
Some ages ago there was a competition on #nlcoders doing the Sierpiński triangle in as less bytes as possible.
Of course I was beaten very bad. A 13 byte version using rule 90 exists.
This assembles down to these 28 bytes:
b0 13 99 84 ca 75 04 cd 10 b4 0c fe c2 79 f4 fe c1 79 ef 98 cd 16 b8 03 00 cd 10 c3
Pseudo-code
For the assembly-impaired here is the pseudo-code:
Downloads
Name | Type | Last modified | Size | |
---|---|---|---|---|
SIERPIN.ASM | Assembly | Dec ’17 | 259 bytes | Preview Download |
SIERPIN.COM | MS-DOS™ executable | Mar ’11 | 28 bytes | Preview Download |
sierpinski-dosbox.png | PNG image | Dec ’15 | 13.7 kB | Preview Download |
sierpinski-logo.png | PNG image | Nov ’19 | 581 bytes | Preview Download |
sierpinski-logo.svg | SVG image | Dec ’21 | 1.4 kB | Preview Download |
5 files | 16.0 kB |