Graphics

From AGI Wiki
Revision as of 15:52, 7 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''graphics''' command displays the graphics screen. == Syntax == graphics(); == Remarks == The default display screen when AGI starts is the graphics screen. If t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The graphics command displays the graphics screen.

Syntax

graphics();

Remarks

The default display screen when AGI starts is the graphics screen. If the display is switched using the text.screen command, use the graphics command to switch it back.

If the graphics screen is already active, using this command refreshes the display.

Possible Errors

None.

Example

Code:

<syntaxhighlight lang="agi"> text.screen(); [ switch to text screen ... graphics(); [ done with text screen; switch back to graphics </syntaxhighlight>

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 107 (0x6B hex)

See Also

Display Commands
Graphics and Text Displays in AGI
text.screen