Created
April 2, 2023 15:16
-
-
Save nihirash/1760749568d5f8ef5d1d328dbb9314bd to your computer and use it in GitHub Desktop.
bbc basic. Very simple plasma effect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 DIM S(32) : LET O=0 | |
| 20 FOR I=0 TO 32 | |
| 30 LET X = (I*(PI/16)) - PI | |
| 40 S(I)=INT(8 * (1 + SIN(X))) | |
| 50 NEXT I | |
| 55 CLS : O = O+1 | |
| 60 FOR Y=1 TO 23 : FOR X=1 TO 79 | |
| 70 COLOUR S((X*X+Y*Y+O) MOD 32) | |
| 80 PRINT "#"; | |
| 90 NEXT : PRINT | |
| 100 NEXT | |
| 110 *FX 19 : *FX 19 | |
| 120 GOTO 55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment