ScratchData LogoScratchData
Back to ksdavidc's profile

Optimally fit grid of up to 300 elements

KSksdavidc•Created June 6, 2022
Optimally fit grid of up to 300 elements
0
0
3 views
View on Scratch

Instructions

This is a full answer to a class project. This project demonstrates how to optimally make a variable grid of any size, rows, and columns, as long as the total number of grid elements is less than the clone limit of 300. It fills the grid so that either the width or height is fully filled, depending on which is optimal. By the way, the faces are A.I. generated, not real. * Run the project. * Press a to change the grid. - The number of grid elements appears. - Adjust the sliders to create the right number of grid elements. - Press space, or click when ready. - If it is too large, an error is shown, and you can try again. Else, a new grid is generated. * Press space to redraw faces (same grid) at any time. * Tap s while hovering over grid element to see position and size (stays until you leave grid element). * Press r to toggle 6 second auto refresh (orange background) (off by default) * Press t to show one face at a time * Press t+y to auto show one face at a time

Description

The sources of the images and quotes are inside the project. The code is all my own. v2. add t to show one face at a time

Project Details

Project ID701739368
CreatedJune 6, 2022
Last ModifiedJune 14, 2022
SharedJune 6, 2022
Visibilityvisible
CommentsAllowed