Toggles full-screen mode or returns the current mode.
Calling fullscreen(true) makes the sketch full-screen. Calling fullscreen(false) makes the sketch its original size.
Calling fullscreen() without an argument returns true if the sketch is in full-screen mode and false if not.
Note: Due to browser restrictions, fullscreen() can only be called with user input such as a mouse press.
예제
구문
fullscreen([val])
매개변수
val
Boolean:
스케치가 전체 화면모드여야 하는지에 대한 여부
Returns
Boolean: 현재의 전체 화면 상태
This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!