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

Add aspect ratio configuration #25

Open
ianstormtaylor opened this issue Nov 5, 2022 · 1 comment
Open

Add aspect ratio configuration #25

ianstormtaylor opened this issue Nov 5, 2022 · 1 comment
Labels
feature New features or requests

Comments

@ianstormtaylor
Copy link
Owner

So you can choose a specific aspect ratio without having to define a specific width. For when the sketch is full screen.

@ianstormtaylor ianstormtaylor added the feature New features or requests label Nov 5, 2022
@ianstormtaylor
Copy link
Owner Author

Alternatively… could allow for using vh/vw-style units so you could get fancier and open up more possibilities of having the screen's dimensions taken into account. Simple ones like letterboxing a 16:9 video, but also something like 50% width and 50% height?

The tricky part of this though is that dimensions are currently [number, number, Units] and in the case of viewport-specific ones... we need [50vw, 50vh] where the units are slightly different… tricky.

Maybe units should be just strings? Not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or requests
Projects
None yet
Development

No branches or pull requests

1 participant