Skip to content

.width and .height don't work with webgl-2d canvas ? #32

@BuzzBuzz

Description

@BuzzBuzz

Hello
I am trying to use webgl-2d instead of my usual canvas but I get a size problem.
I define .width and .height for resolution and .style.width and .style.height for size on screen. But with webgl-2d, the canvas is small in the bottom left corner.
Is there a specific way to give webgl-2d canvas their size ?

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