https://github.com/prnxdev/MTA_rounded_rectangle
https://github.com/prnxdev/MTA_rounded_rectangle
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prnxdev/MTA_rounded_rectangle
- Owner: prnxdev
- Created: 2016-01-22T23:05:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-18T08:27:31.000Z (over 8 years ago)
- Last Synced: 2025-01-05T00:02:02.047Z (5 months ago)
- Language: Lua
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mta-sa - MTA rounded rectangle - Create rounded rectangles. (Libs and utils)
README
### Create rounded rectangles with this function!
Easy to use, cool effect. Why not to use?
1 thing - enable OOP in meta.xml```xml
...
true
...```
##### SIMPLE AF
```lua
local texture = dxCreateRoundedTexture(300,40,50) -- width: 300px, height: 40px, radius: 50% (0-100%)addEventHandler("onClientRender",root,
function()
if texture then
dxDrawImage(0,0,300,40,texture) -- drawing rounded texture at [0,0] with size [300,40]
end
end)
```#### TODO
Add antyaliasing. If you know how to make code better - DO IT! YES, YOU CAN! YESTERDAY YOU SAID TOMORROW!cheers.