[READ-ONLY] Mirror of https://github.com/thoda-dev/du_render_script_library. A library to build renderscript in boards without writting it as a full string
0

Configure Feed

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

Update README.md

Thomas (Apr 15, 2023, 6:38 PM +0200) 16390456 69faed24

+28 -1
+28 -1
README.md
··· 40 40 ]] 41 41 42 42 screen.setRenderScript(script) 43 - ``` 43 + ``` 44 + 45 + ## Addition to the default render script 46 + 47 + This library add some functions to the default render script: 48 + 49 + ### Third Party libraries support 50 + 51 + `use(libraryName)`: Use a third party library in the renderscript 52 + - `libraryName`: `string` The name of the library to use, it will also be used as the variable name to access it in the renderScript 53 + 54 + `useAtlas()`: Use the atlas library in the renderscript 55 + 56 + `useJSON()`: Use the JSON (dkjson) library in the renderscript 57 + 58 + `useRSLib()`: Use the RSLib library in the renderscript 59 + 60 + ### RenderScript utilities functions 61 + 62 + `getMaxSize()`: Get the maximum size of the render script 63 + 64 + `isTooLong()`: Check if the render script is too long 65 + 66 + `sendToScreen(screen)`: Send the render script to a screen 67 + 68 + ### Others 69 + 70 + `insertCodeLine(code)`: Insert a line of code in the render script