Logo Environment
The LOGO.ENV object contains information about the environment that Logo runs in.
BROWSER
Part of: LOGO.ENV
Reports the browser name.
Syntax
GPROP "LOGO.ENV "BROWSER
Description
BROWSER contains the name of the browser that Logo is executing in.
Examples
GPROP “LOGO.ENV “BROWSER Result: CHROME
ENVIRONMENT
Part of: LOGO.ENV
Reports the device that Logo is executing upon.
Syntax
GPROP "LOGO.ENV "ENVIRONMENT
Description
ENVIRONMENT contains a word describing the browser environment; currently one of ANDROID
, IOS
, SILK
, MOBILE
or PC
.
Examples
GPROP “LOGO.ENV “ENVIRONMENT Result: PC
FULLSCREEN
Part of: LOGO.ENV
Controls whether to have Terrapin Logo occupy the entire screen or
Syntax
GPROP "LOGO.ENV "FULLSCREEN
PPROP "LOGO.ENV "FULLSCREEN TRUE/FALSE
Description
FULLSCREEN sets Terrapin Logo to fullscreen if its value is set to TRUE, or to normal size if its value is set to FALSE. It reports the current fullscreen setting.
Not all browsers allow a program to occupy the entire screen. In that case, setting the FULLSCREEN property to TRUE does not have any effect.
Also, do not expect any Logo panel to properly report its size immediately after setting the property. The change to fullscreen and back is independent from the execution of a Logo program, and resizing all panels takes some time before Logo is made aware of the changes.
Examples
GPROP “LOGO.ENV “FULLSCREEN Result: FALSE
SCREENSIZE
Part of: LOGO.ENV
Reports the size of the browser window
Syntax
GPROP "LOGO.ENV "SCREENSIZE
Description
SCREENSIZE reports the size of the browser window in pixels.
Examples
GPROP “LOGO.ENV “SCREENSIZE Result: [1283 988]
VERSION
Part of: LOGO.ENV
Reports the Logo version number.
Syntax
GPROP "LOGO.ENV "VERSION
Description
VERSION reports the Logo version number as a numeric value.
Examples
GPROP “LOGO.ENV “VERSION Result: 6