-
Notifications
You must be signed in to change notification settings - Fork 245
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
Screen size measuring #1684
Comments
Good idea.
extensions/extensions/Xeltalliv/simple3D.js Lines 959 to 965 in a834058
extensions/extensions/Xeltalliv/simple3D.js Lines 4314 to 4329 in a834058
|
Currently, projects can get the size of the window using Window Controls and the size of the entire display using Screen Resolution. But what if more information about the screen, window, and project player could be obtained through a single extension?
Here are all the interfaces we can use to get different size measurements, and some ideas for what we could call them:
window.screen.width/height
window.screen.availWidth/availHeight
outerWidth/outerHeight
innerWidth/innerHeight
Scratch.renderer.canvas.width/height
And here's how I represent them visually:
Which of these do you think would be useful for Scratch projects?
The text was updated successfully, but these errors were encountered: