From 5d50763ec8988ead90bb67c7f920e4fa5433e6a5 Mon Sep 17 00:00:00 2001 From: Thomas DAGES Date: Thu, 6 Dec 2018 15:42:52 +0100 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b11632c..2b0cabf 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,10 @@ can be tested [here](https://www.lua.org/cgi-bin/demo) `svg.min.lua` generated with [Lua Minifier from Mothereff.in](https://mothereff.in/lua-minifier) # Documentation -**svg:create()** *create the svg object* +**svg:create(width, height, stroke, fill)** *create the svg object* + Params: -- width: number => width of the drawing -- height: number => height of the drawing -- stroke: string => lines color -- fill: string => fill color \ No newline at end of file +- 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 -- 2.54.0