MCPcopy Create free account
hub / github.com/FastLED/FastLED / __repr__

Method __repr__

examples/Chromancer/gen.py:54–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return Point(self.x, self.y)
53
54 def __repr__(self) -> str:
55 x_rounded = round(self.x, 2)
56 y_rounded = round(self.y, 2)
57 return f"({x_rounded}, {y_rounded})"
58
59
60def next_point(pos: Point, angle: HexagonAngle, space: float) -> Point:

Callers

nothing calls this directly

Calls 1

roundFunction · 0.85

Tested by

no test coverage detected