Hello,
I am currently trying to parse and draw svg d path using prolog.
I found that xpce can draw lines, bezier curves and arcs which are all the graphical components needed to draw the path.
However, how would I fill such path ?
I have found the path
class in xpce but I believe we can only draw a polyline or a smooth line with a list of points.
Would it be possible to pass a list of line/4
and bezier_curve/4
instead ?
Here is an example of a list of lines and bezier curves that I would like to fill :
bezier_curve(point(0,-39),point(200,133),point(0,29),point(73,133))
bezier_curve(point(200,133),point(314,38),point(266,133),point(314,96))
bezier_curve(point(314,38),point(96,-133),point(314,-46),point(208,-133))
bezier_curve(point(96,-133),point(0,-39),point(32,-133),point(0,-103))
line(0,-39,0,-39)