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

allow for setting width and height of webgl canvas manually #23

Closed
nirvn opened this issue Apr 18, 2014 · 2 comments
Closed

allow for setting width and height of webgl canvas manually #23

nirvn opened this issue Apr 18, 2014 · 2 comments
Labels
enhancement New feature or request

Comments

@nirvn
Copy link

nirvn commented Apr 18, 2014

Right now, the canvas width & height are fixed to the width & height of the browser's window. It would be very useful to add a feature allow for the width and height to be fixed to a user-entered value (as an alternative to sticking to the browser's window).

This would be very useful when users want to export the webgl canvas display to a still image when the image width & height need to be set to a desired value. For e.g. exporting canvas to a still image to be used in a video would ideally need to have its width and height set to match the video size.

@minorua
Copy link
Owner

minorua commented May 7, 2014

URL parameters have been added (7c43117). You can set canvas size by adding width & height options in query string. popup option opens a popup window. You can set popup window size by combining them (e.g. file:///D:/output/output.html?width=400&height=400&popup).

@minorua minorua closed this as completed May 7, 2014
@minorua minorua added this to the v.0.8 milestone May 7, 2014
@nirvn
Copy link
Author

nirvn commented May 7, 2014

You're my hero ;) thanks.
On 7 May 2014 14:32, "Minoru Akagi" notifications@github.com wrote:

URL parameters have been added (7c431177c43117).
You can set canvas size by adding width & height options in query
string. popup option opens a popup window. You can set popup window
size by combining them (e.g.
file:///D:/output/output.html?width=400&height=400&popup).


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-42397492
.

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
None yet
Development

No branches or pull requests

2 participants