msspec_python3/msspec/msspecgui/scenegraph2d/scenegraph/element/polyline.py

27 lines
463 B
Python
Raw Normal View History

2019-11-14 15:16:51 +01:00
# -*- coding: utf-8 -*-
"""
scenegraph.element.polyline
"""
# imports ####################################################################
from .path import Path
# polyline ###################################################################
class Polyline(Path):
tag = "polyline"
points = []
@property
def d(self):
d = ['M']
for point in self.points:
d += [point, 'L']
d.pop()
return d