MCPcopy
hub / github.com/fogleman/Minecraft / tex_coords

Function tex_coords

main.py:63–74  ·  view source on GitHub ↗

Return a list of the texture squares for the top, bottom and side.

(top, bottom, side)

Source from the content-addressed store, hash-verified

61
62
63def tex_coords(top, bottom, side):
64 """ Return a list of the texture squares for the top, bottom and side.
65
66 """
67 top = tex_coord(*top)
68 bottom = tex_coord(*bottom)
69 side = tex_coord(*side)
70 result = []
71 result.extend(top)
72 result.extend(bottom)
73 result.extend(side * 4)
74 return result
75
76
77TEXTURE_PATH = 'texture.png'

Callers 1

main.pyFile · 0.85

Calls 1

tex_coordFunction · 0.85

Tested by

no test coverage detected