Skip to content

createCanvas() doesn't return an HTMLCanvasElement #2817

@lorenzo-lipparini

Description

@lorenzo-lipparini

Nature of issue?

  • Found a bug

Most appropriate sub-area of p5.js?

  • Core/Environment/Rendering

Details about the bug:

The documentation states that the createCanvas() function should return an HTMLCanvasElement corresponding to the created canvas, but this is clearly not the case since a p5.Renderer is returned istead.

The thing happens in this line of code of the p5 source.

However, I'm not really sure about which one is wrong between the documentation and the implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions