12.07.2015 Views

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

130 NEXT X140 NEXT Y200 FOR X=g TO 63 STEP 63210 FOR Y=lO TO 43220 PLOT X,Y230 NEXT Y240 NEXT X300 GOTO 30096 Painting ExercisesJust goes to show that some of the most attractivecomputer graphics require some of the shortest programs.Program Listing10 CLS20 RAND100 LET W=INT(63*RND}110 LET X=INT(63*RND}120 LET Y=INT(43*RND}130 LET Z=INT(43*RND}140 FOR L=W TO X150 FOR K=Y TO Z160 PLOT L,K170 NEXT K180 NEXT L200 GOTO 10097 Draw A LineThere are different ways to draw a line on theComputer screen.112

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!