Class: DrawPathUtils

Kekule.Render. DrawPathUtils

new DrawPathUtils()

Help methods about path used in 2D renderer.
Source:

Methods

(static) makePath()

Make a path array from arguments. For instance, makePath('M', [10, 20], 'L', [20, 30]). The path method string is similiar to SVG path string format, including: M moveto (x y)+ Z closepath (none) L lineto (x y)+ //H horizontal lineto x+ //V vertical lineto y+ C curveto (x1 y1 x2 y2 x y)+ S smooth curveto (x2 y2 x y)+ Q quadratic Bézier curveto (x1 y1 x y)+ T smooth quadratic Bézier curveto (x y)+ A elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y)+
Source: