page-1983-101-timex-sinclair-programming-tricks
page-1983-101-timex-sinclair-programming-tricks
page-1983-101-timex-sinclair-programming-tricks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
87 Beautiful Braided RugJust goes to show that some of the most attractivecomputer graphics require some of the shortest programs.Program Listing10 FOR X=l TO 20 STEP 220 FOR Y=l TO 20 STEP 230 PRINT AT X,Y;CHR$ 840 PRINT AT X+l,Y+l;CHR$ 12850 NEXT Y60 NEXT X88 Circling DotMore round graphics on your rectangular picturetube.Program Listing10 CLS20 FOR N=l TO 1230 LET X=20-(10*COS(N/6*PI))40 LET Y=l0+(10*SIN(N/6*PI))50 PLOT X,Y60 NEXT N70 GOTO 2089 Making Things MoveMovement on the computer display screen is an illusion.As in any television picture, the turning on and turningoff of dots in a pattern across a screen can seem toprovide motion to an object drawn on the face of the tube.108