DISPLAY

From QB64 Wiki
Revision as of 02:10, 30 September 2009 by 90.229.181.254 (talk) (Created page with '_DISPLAY turns off the automatic display of the screen graphics (which is at around 30 fps) while displaying the screen graphics. You have to call _DISPLAY each time you want the…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

_DISPLAY turns off the automatic display of the screen graphics (which is at around 30 fps) while displaying the screen graphics. You have to call _DISPLAY each time you want the screen graphics to be displayed.


Syntax: _DISPLAY


Example:

SCREEN 13, 0, 1, 0
dx = 1: dy = 1
DO
PCOPY 1,0
CLS
_LIMIT 60
x = x + dx: y = y + dy
IF x < 0 OR x > 320 THEN dx = -dx
IF y < 0 OR y > 200 THEN dy = -dy
CIRCLE (x, y), 10, 15
_DISPLAY
LOOP UNTIL INKEY$ = CHR$(27)


Returns:

Displays a circle going around the screen at 60 frames per second, displaying each frame to the screen.


See also: _AUTODISPLAY