Skip to content

p5's fullscreen(true) does not work yet #21

@davepagurek

Description

@davepagurek

Most appropriate sub-area of Processing 4?

Other (specify if possible)

Processing version

p5.js mode 0.6

Operating system

MacOS 15.2

Bug description

In p5, you can call fullscreen(true) to enter fullscreen mode. Currently, calling this doesn't do anything in p5.js mode.

Steps to reproduce this

Test this sketch:

function setup() {
  createCanvas(windowWidth, windowHeight);
  fullscreen(true);
}

function windowResized() {
  resizeCanvas(windowWidth, windowHeight);
}

function draw() {
  background(200);
  circle(width/2, height/2, 50);
}

It should immediately enter fullscreen, but it does not.

snippet

No response

Additional context

We currently set fullscreen conditionally based on an environment variable, but even if we start not fullscreen, fullscreenable is required in the BrowserWindow settings to allow this to work.

Would you like to work on the issue?

Yes, I’d like to help with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions