htmlifier icon indicating copy to clipboard operation
htmlifier copied to clipboard

Cover instead of contain

Open SheepTester opened this issue 4 years ago • 0 comments

https://scratch.mit.edu/users/Sheep_maker/#comments-144464596

This leaves black bands on the dimensions of the project. In fact, to be precise, I would like the project to be stretched from the middle to the smallest length of the screen. This means that the longest part of the project will overflow and that we will only see the project according to the size of the smallest stretched length. This could be useful for a platform project for example where a few pixels don't change the game. (in my case too) Just make sure that the image is stretched from the image is stretched from the centre and not from a corner

This is an exemple of my idea : https://raw.githubusercontent.com/CloudDevX/GGames/main/Capture.PNG

Maybe scale up the stage (keep aspect ratio) and then crop off edges of the longer side (like background-size: cover;)

SheepTester avatar Jun 03 '21 19:06 SheepTester