- Edited
Ok, I haven't written a BASIC program since I was a kid, and since I'm not a programmer, I wanted to do something simple and visual to get the rust off me.
This is the first thing I do in BASIC in more than 30 years, so be kind to me...
10 SCREEN 12:CLS
20 w=PSIZE(0):h=PSIZE(1)
30 FOR i=1 TO 4096
40 PSET INT(RND(1)*w),INT(RND(1)*h),INT(RND(1)*255)
50 WAIT 5
60 NEXT i
70 WAIT 1000
80 SCREEN 1:CLS
90 END
I had to add a couple WAIT
there because the program was too fast for the OPi.
Also, I don't like how the system doesn't return to the original SCREEN
setting, so I return to 1 (though I can probably find out which one is set and return to that, but I didn't want to add that level of complexity).
I'll keep playing with this, but I have to say that I'm having a lot of fun doing things in BASIC. It brings back a lot of memories. Cheers!