This is a wrap above DrawNode and https://gist.github.com/dontangg/a7c3acec4bf05e61dd58. Use like this:
auto myRoundedBox = RoundedBox::create(Vec2(500, 500), 60);
| #!/usr/bin/lua | |
| local AVD_BINARY = '/home/v/compile/android-sdk-linux/tools/qemu/linux-x86_64/qemu-system-x86_64' | |
| local ADB_BINARY = '/home/v/compile/android-sdk-linux/platform-tools/adb' | |
| -- I know, hardcoding is bad, but any other way is too expensive :-( | |
| local colors | |
| do | |
| local ok |
This is a wrap above DrawNode and https://gist.github.com/dontangg/a7c3acec4bf05e61dd58. Use like this:
auto myRoundedBox = RoundedBox::create(Vec2(500, 500), 60);
| readiter = function(h, size) | |
| return function() | |
| return h:read(size) | |
| end; | |
| end; | |
| --[[ | |
| Using: for var in readiter(fileh, size) do your_code end | |
| size -- one of supported formats to file:read() | |
| file -- vaule getted using io.open(filename, 'r') -- read mode required! | |
| ]]-- |