Procházet zdrojové kódy

Create a python script to help center nodes

on grid cells.
DricomDragon před 5 roky
rodič
revize
9db18abcfd
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      Tools/tile_centering.py

+ 10 - 0
Tools/tile_centering.py

@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+
+# Helper to center nodes on grid cells
+# Execute with python 3 and give coordinates to be adjusted
+
+while(True):
+    x = int(float(input("coordinate :")))
+    x = (x // 64) * 64 + 32
+    print("> fixed :", x)
+    print("- - -")