Difference between revisions of "DISPLAY"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 3: Line 3:




''Syntax:'' _DISPLAY
:::::::''Syntax:'' _DISPLAY


* Call _DISPLAY each time you want the screen graphics to be displayed if _DISPLAY was used previously.  
 
 
* '''_DISPLAY''' turns off [[_AUTODISPLAY]] when used.
* Call _DISPLAY each time the screen graphics are to be displayed.  
* Re-enable the automatic display by calling [[_AUTODISPLAY]].
* Re-enable the automatic display by calling [[_AUTODISPLAY]].



Revision as of 23:00, 17 October 2009

_DISPLAY turns off the automatic display of the screen graphics (which is at around 30 fps) while displaying the screen graphics.


Syntax: _DISPLAY


  • _DISPLAY turns off _AUTODISPLAY when used.
  • Call _DISPLAY each time the screen graphics are to be displayed.
  • Re-enable the automatic display by calling _AUTODISPLAY.


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



Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage