Skip to content

size() throws error with p5.Graphics #4956

Open
@stalgiag

Description

@stalgiag

Most appropriate sub-area of p5.js?

  • Core/Environment/Rendering

Details about the bug:

  • p5.js version: 1.1.9
  • Web browser and version: latest Firefox and Chrome
  • Operating System: macOS 14
  • Steps to reproduce this:

p5.Graphics.size() throws this error:

TypeError: setting getter-only property "canvas"

This is specific to p5.Graphics. Other p5.Element-derived objects can resize as expected.

Here is an example sketch.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions