Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

pixelDensity and displayDensity #289

Open
@shaunlebron

Description

@shaunlebron

The following API endpoints are missing and would allow for sharper images on retina screens.

displayDensity()

pixelDensity()

  • should set canvas.style.width = width (same for height)
  • should set canvas.width = width*density (same for height)
  • should set mouseX = mouseX * density (same for Y)
  • should scale drawing coords by density

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