An open API service indexing awesome lists of open source software.

https://github.com/prnxdev/MTA_rounded_rectangle


https://github.com/prnxdev/MTA_rounded_rectangle

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

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.