Assembly: Make JCS axis colors use parameters

This commit is contained in:
qewer33
2023-09-22 19:46:58 +03:00
parent b3c35cc647
commit 203a2f122f
2 changed files with 19 additions and 23 deletions

View File

@@ -236,3 +236,11 @@ def findVertexNameInObject(vertex, obj):
if vtx.Point == vertex.Point:
return "Vertex" + str(i + 1)
return ""
def color_from_unsigned(c):
return [
float(int((c >> 24) & 0xFF) / 255),
float(int((c >> 16) & 0xFF) / 255),
float(int((c >> 8) & 0xFF) / 255),
]