412lop 2022-09-25 15:15
This uses the sin(n) function to generate a sine wave
was8bit 2022-09-26 08:26
Try this variation :)
SWP = 0
PRINT "SINE WAVE"
FL=0
DO
SWP = SWP + 0.2
BG FILL SWP+1,2 TO SWP+1,15 CHAR 0
CELL SWP,(SIN(SWP) + 2)*4,1
ADD FL,1,0 TO 30
IF FL=0 THEN WAIT VBL
LOOP
was8bit 2022-09-26 08:28 (Edited)
The FL parts simply "speed up" the animation ... it can be removed if prefered and just keep WAIT VBL
was8bit 2022-09-26 08:29
The BG FILL part clears a path in front of the new cell being added
was8bit 2022-09-26 08:48
Your program was very inspiring :)