MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / __init__

Method __init__

python/utils.py:86–93  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

84
85class Shape():
86 def __init__(self, text: str):
87 self.points: Set[Point] = set()
88
89 lines = text.split("\n")
90 for y, line in enumerate(lines):
91 for x, char in enumerate(line):
92 if char != ".":
93 self.points.add(Point(x, y))
94
95 def outline(self) -> Self:
96 outline = set()

Callers

nothing calls this directly

Calls 1

PointClass · 0.85

Tested by

no test coverage detected