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: 현재의 전체 화면 상태
Notice any errors or typos? Please let us know. Please feel free to edit src/core/environment.js and open a pull request!