WindowSize

Family: Core · 2 forms

What it does

WindowSize writes a value: it sets rather than reads. It takes width (an integer), height (an integer) and fullscreen (an integer), and returns nothing. That is the first of 2 forms.

Syntax

1
WindowSize(width integer, height integer, fullscreen integer)
2
WindowSize(width integer, height integer, fullscreen integer, allowOverSized integer)

Parameters

NameTypeIn forms
widthintegerall
heightintegerall
fullscreenintegerall
allowOverSizedinteger2

Every form returns

nothing

Example · generated

Form 1, the short one

WindowSize(64, 64, 1)DO  Sync()LOOP

Form 2, with every argument

WindowSize(64, 64, 1, 64)DO  Sync()LOOP

WindowSize is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

200 commands in Core