···141141 fill = fill or self.fill,
142142 transform = transform or ""
143143 })
144144+end
145145+146146+-- function ro create a line
147147+-- c1: number => Horizontal postion for point 1
148148+-- y1: number => Vertical position for point 1
149149+-- x2: number => Horizontal position for point 2
150150+-- y2: number => Vertical position for point 2
151151+-- stroke: string => lines color
152152+-- strokeWidth: string => lines width
153153+-- fill: string => fill color
154154+function svg:Line(x1, y1, x2, y2, stroke, strokeWidth, fill)
155155+ return self.Element:create("line", {
156156+ x1 = r or 15,
157157+ y1 = r or 15,
158158+ x2 = cx or 50,
159159+ y2 = cy or 45,
160160+ stroke = stroke or self.stroke,
161161+ ["stroke-width"] = strokeWidth or 1,
162162+ fill = fill or self.fill
163163+ })
144164end