4 ms·
Show HN: Calculate the layout to hang up pictures on the wall with Python
- lnxg33k1 5y agoThis is quite nice, since I remember I've never liked mono-color walls, when I was a kid I used to paint on my walls tags and drawings with spray cans, but now since I grew up and it was a mess and it was repainted, I've started to put pictures of cities I've visited, maps of the cities, pubs cups holders from the world and random pictures of paintings and some flyers of clubbing nights, and banknotes of random countries, so around me I like to have colorful walls full of memories, so this speaks deep to me
- wdfx 5y agoLooks interesting, and I'd use it but the first example shown has quite obviously incorrect picture spacing. Am I missing something?
- wdfx 5y agoTo elaborate on what I mean... If the pictures are not uniform size you can't simply divide the wall dimension by the number of pictures. You'll want instead to calculate equal spacing between the pictures, or perhaps have the software configurable for proportional spacing/margins.
- trbznk 5y agoIn the first place this is in a experimental state. Currently theres only on layout type implemented. Exactly like you said its the "divide by pictures" layout. The layout to evenly space them even if there are different widths, I will implement in the future.
- eternityforest 5y agoWhat's the rule this uses? I think I'd use FreeCAD to try out different ways of doing equal spacing or equal center distance or what not and see what looked right.
- trbznk 5y agoI just want to automate the process for some fixed given layout types. When creating something individual, free CAD software like LibreCAD is a better way to go.