Page 1 of 1

Sierpinski Triangle written in BASIC

Posted: Sat Apr 17, 2021 1:10 pm
by NuVista175


At last!! The possibility to do pset ?




Just started with Commander X16 emulator today and it brings back a lot of good memories from my time with my old "bread box". I did a similar program on my old C64 back in the days but I can't remember all the POKEs and PEEKs necessary to do this in BASIC on the Commodore 64, but with this machine it's actually possible in just a few lines. 



Just updated the calculation for new X and Y-coordinates on screen. I figure it should be quicker to first add them together and then divide by 2 rather than before. At least it's less code.



SIER.PRG