Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale canvas for multiple viewports #91

Open
cainwatson opened this issue Jun 10, 2018 · 1 comment
Open

Scale canvas for multiple viewports #91

cainwatson opened this issue Jun 10, 2018 · 1 comment
Labels
enhancement New feature or request
Projects

Comments

@cainwatson
Copy link
Contributor

No description provided.

@cainwatson
Copy link
Contributor Author

change the size of the canvas based on the device size and use context.scale for enlarging/reducing the items
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale
http://codetheory.in/scaling-your-html5-canvas-to-fit-different-viewports-or-resolutions/

@cainwatson cainwatson added this to Master Backlog in Elixir Refactor Jun 5, 2020
@cainwatson cainwatson changed the title scale canvas for multiple viewports Scale canvas for multiple viewports Jun 5, 2020
@cainwatson cainwatson added the enhancement New feature or request label Jun 5, 2020
@cainwatson cainwatson added this to To do in Draw It! via automation Jun 25, 2020
@cainwatson cainwatson removed this from Todo in Elixir Refactor Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Draw It!
  
To do
Development

No branches or pull requests

1 participant