Display HN: Calculate the layout to hang up photography on the wall with Python

63
Display HN: Calculate the layout to hang up photography on the wall with Python

Calculate the layout on the wall to hang up photography.

Installation

pip install git+https://github.com/trbznk/wallc.git

Getting Started

Within the intervening time a image has 4 different parameters:

picture parameters

Spend the wallc module to initialize the wall and all deliberate photography with sure parameters:

from wallc import Image, Suspension, Wall, Structure

p1 = Image(800, 600, Suspension(600, 100))
p2 = Image(500, 500, Suspension(300, 120))
p3 = Image(1200, 800, Suspension(800, 200))
layout = Structure(Wall(4000, 2000), photography=[p1, p2, p3])
layout.layout()
layout.procedure()

Example Output

There are different marks in the output image to specify the correct positions to hang on the shots on the wall:

Example Zoom

Be a part of the pack! Be a part of 8000+ others registered users, and come by chat, come by groups, post updates and come by chums world huge!
www.knowasiak.com/register/

Charlie Layers
WRITTEN BY

Charlie Layers

Fill your life with experiences so you always have a great story to tell