Astuce2_bas

Date: 1990
Type: Diskette
Platform(s): QL
Tags: Graphics

A colour demo: rows of filled circles follow a growing sine curve across the screen, each circle’s colour set by its position, with a coloured strip and border framing the display. It repeats seven times with the circles more widely spaced each time.

Hugh Howie did not know the author and invited him to come forward for the credit. It came from the club QL Library.

Published in Sinc-Link May-June 1990 (From the QL Library: Astuce2_bas).

Related Articles

I don’t know the author of this, but he is welcome to credit if wishes to contact me.

Source Code

1 MODE 4:WINDOW 512,236,0,10:PAPER 0:INK 7
2 OPEN #3,scr_512x10a0x246:PAPER #3,2:INK #3,0
3 WINDOW #0,512,10,0,0:PAPER #0,2:INK #0,0
4 CLS:CLS#0:CLS#3:CSIZE #0,0,0:CSIZE #3,0,0
7 BORDER 1,7
10 FOR s=1 TO 7
20 FOR x=3 TO 300 STEP s
30 y=SIN(x)*x/8+50
40 INK INT((x+y)/10)
50 FILL 1:CIRCLE x/2,y,x/25
60 FILL 0
70 INK 7:CIRCLE x/2,y,x/25
80 NEXT x
90 PAUSE 100:CLS
100 NEXT s

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.