MCPcopy Create free account
hub / github.com/Notgnoshi/generative / _append_position

Method _append_position

generative/lsystem/interpreter.py:91–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 return line
90
91 def _append_position(self):
92 # If any coordinate isn't equal to the last recorded position.
93 if self.drawing and (
94 not self.active_line or np.any(self.active_line[-1] != self.turtle.position)
95 ):
96 self.active_line.append(self.turtle.position)
97
98 def _interpret_default(self, tokens: Tokens):
99 for token in tokens:

Callers 1

_flush_active_lineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected