Files
fmatray-ComfyUI_BattlemapGrid/path.py
T
frédéric 0f93feb3d9 add flowers
add orig width/height to the grid node
debug
2024-05-12 22:54:34 +02:00

15 lines
312 B
Python

from dataclasses import dataclass, field
from .point import Point
@dataclass
class Path:
width: int
points: list[Point] = field(default_factory=list)
def add_point(self, point: Point):
self.points.append(point)
def coord(self):
return [point.coord() for point in self.points]