Video display modes: Difference between revisions

add AmigaBASIC version
(URL of this page added to program introduction.)
(add AmigaBASIC version)
Line 1:
{{task}}[[Category:Initialization]]
The task is to demonstrate how to switch video display modes within the language. A brief description of the supported video modes would be useful.
 
=={{header|AmigaBASIC}}==
 
<lang amigabasic>SCREEN 1,320,200,5,1</lang>
This command creates a new screen #1 (4 max) with 320x200 pixels and 5 bits per pixel (for a total of 2⁵=32 colors). The final parameter, 1, sets the monitor to 320x200 (NTSC Amiga) or 320x256 (PAL Amiga) non-interlaced mode. If set to 2, it would use 640*200/640*256, while 3 and 4 would result in corresponding interlaced modes with twice the vertical resolution.
 
The screen can be closed again with
<lang amigabasic>SCREEN CLOSE 1</lang>
 
=={{header|Applesoft BASIC}}==
Anonymous user