[READ-ONLY] Mirror of https://github.com/thoda-dev/svg-lua. svg lua library
0

Configure Feed

Select the types of activity you want to include in your feed.

Update README.md

Thomas DAGES (Dec 6, 2018, 3:45 PM +0100) 3db82637 5d50763e

+8 -3
+8 -3
README.md
··· 8 8 mon_dessin:draw() 9 9 ``` 10 10 11 - result : 11 + result for `print(mon_dessin:draw)` : 12 12 ```html 13 13 <svg width="100" height="100" fill="transparent" stroke="#000000" version="1.1" xmlns="http://www.w3.org/2000/svg"> 14 14 <rect y="10" x="10" stroke-width="1" height="10" width="10" rx="0" ry="0" /> ··· 22 22 # Documentation 23 23 **svg:create(width, height, stroke, fill)** *create the svg object* 24 24 25 - Params: 26 25 - width: number => width of the drawing, default to 100 27 26 - height: number => height of the drawing, default to 100 28 27 - stroke: string => lines color, default to '#000000' 29 - - fill: string => fill color, default to 'transparent' 28 + - fill: string => fill color, default to 'transparent' 29 + 30 + **svg:add(element)** *add an element to the drawing* 31 + 32 + - element: svg.Element => see farther for element list 33 + 34 + **svg:draw()** *return the svg formated string*