13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

PRESET statementFunctionSyntaxRemarksSee AlsoExamplePRESET plots a point on the graphics screen.PRESET (x,y) [, color](X,y) are the coordinates of the point to plot on the graphics screenand can be given in either absolute or relative form. color is aninteger expression defining the color the point should have. Normalmode restrictions apply for the color attribute. Refer to the PAL­ETIE statement for valid attribute ranges in each screen mode.If a color is specified, PRESETand its complementary commandPSET operate identically. The difference between the two is thatPRESET has a default color value of 0 (the background color),while PSET defaults to the maximum allowable attribute value forthe mode you are ,in. In other words, without color arguments,PSET turns on pixels and PRESET turns them off.PSETI switch to medium resolution graphics modeSCREEN 1FOR 1% = 0 TO 359FOR J% = 0 TO 199DELAY 0.01PSET (1%, J%)NEXT J%NEXT 1%FOR 1% = 0 TO 359FOR J% = 0 TO 199DELAY 0.01PRESET (1%, J%)NEXT J%NEXT 1%END I end the program306<strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

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

Saved successfully!

Ooh no, something went wrong!