diff --git a/README.md b/README.md index 2b0cabf..bd4a6c4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ mon_dessin:add(mon_dessin:Rect()) mon_dessin:draw() ``` -result : +result for `print(mon_dessin:draw)` : ```html @@ -22,8 +22,13 @@ can be tested [here](https://www.lua.org/cgi-bin/demo) # Documentation **svg:create(width, height, stroke, fill)** *create the svg object* -Params: - width: number => width of the drawing, default to 100 - height: number => height of the drawing, default to 100 - stroke: string => lines color, default to '#000000' -- fill: string => fill color, default to 'transparent' \ No newline at end of file +- fill: string => fill color, default to 'transparent' + +**svg:add(element)** *add an element to the drawing* + +- element: svg.Element => see farther for element list + +**svg:draw()** *return the svg formated string* \ No newline at end of file