From 85adc89f53763b4390f7e51161a05ab394143152 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 16 Mar 2024 11:11:56 +0200 Subject: drafting game components --- src/sliceitoff/display/static.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/sliceitoff/display/static.py (limited to 'src/sliceitoff/display/static.py') diff --git a/src/sliceitoff/display/static.py b/src/sliceitoff/display/static.py new file mode 100644 index 0000000..43dc385 --- /dev/null +++ b/src/sliceitoff/display/static.py @@ -0,0 +1,11 @@ +from dataclasses import dataclass + +INTERNAL_WIDTH = 40000 +INTERNAL_HEIGHT = 30000 +INTERNAL_ASPECT = INTERNAL_WIDTH / INTERNAL_HEIGHT + +@dataclass +class Scaling(): + scale: float + left: int + top: int -- cgit v1.2.3