[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 (Dec 11, 2018, 2:37 PM +0100) 539550bd 3e2b1900

+13
+13
README.md
··· 2 2 3 3 svg lua library *(made for LUA 5.3.4)* 4 4 5 + ## Installation 6 + 7 + You can install the minified version using NPM with NodeJS: `npm i svg-lua` 8 + 5 9 ## usage 10 + 11 + To use the installed minified version, you must add the reference for LUA to the file. 12 + To do it, add the following at the begining of your LUA file *(replace <path_to_the_node_module_directory> by the correct string eg: ".\\" if it's in the same directory)*: 13 + ***If you are using relative path, think it's the path from the LUA binaries files, not from you code file*** 14 + 15 + ```lua 16 + package.path = package.path .. ";" .. "<path_to_the_node_modules_directory>\\node_modules\\svg-lua\\?.lua" 17 + require "svg-min" 18 + ``` 6 19 7 20 ```lua 8 21 mon_dessin = svg:create()