From 3db8263718e3d42a88802d8d1af11679d4a7d9ae Mon Sep 17 00:00:00 2001 From: Thomas DAGES Date: Thu, 6 Dec 2018 15:45:44 +0100 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.51.2