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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

80 Screen FullFill your video screen with square dots, startingfrom the upper left, moving down and across to the lowerright. Line 200 is a freeze frame.Program Listing10 CLS100 FOR X=l TO 21 STEP 2110 FOR Y=l TO 21 STEP 2120 PRINT AT X,Y;CHR$ 128130 NEXT Y140 NEXT X200 GOTO 20081 Sine WaveNote that some complex screen art can be createdwith only a few program lines. You will want to refinethese programs to make them even shorter.Program Listing10 CLS20 FOR X=l TO 6330 LET Y=SIN X + 1040 PLOT X,Y50 NEXT X60 GOTO 6082 Hold That PoseThe illusion of motion is important in computergraphics. But, to make a character move, you have to drawit first!Here we have created a friendly little stick man. But,103

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

Saved successfully!

Ooh no, something went wrong!