VERSIÓ 1.3.12
- [FIX] La paleta per defecte era tota transparent - [NEW] draw.rrect() i draw.rrectf()
This commit is contained in:
@@ -184,21 +184,21 @@ function draw.hline(x1, y, x2, color) end
|
||||
---Draw a vertical line from (x,y1) to (x,y2) with the givencolor
|
||||
function draw.vline(x, y1, y2, color) end
|
||||
|
||||
---@param x1 number
|
||||
---@param y1 number
|
||||
---@param x2 number
|
||||
---@param y2 number
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param w number
|
||||
---@param h number
|
||||
---@param color number
|
||||
---Draw the ouline of a rectangle from (x1,y1) to (x2,y2) with the given color
|
||||
function draw.rect(x1, y1, x2, y2, color) end
|
||||
---Draw the ouline of a rectangle at (x,y) of size (w,h) with the given color
|
||||
function draw.rect(x, y, w, h, color) end
|
||||
|
||||
---@param x1 number
|
||||
---@param y1 number
|
||||
---@param x2 number
|
||||
---@param y2 number
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param w number
|
||||
---@param h number
|
||||
---@param color number
|
||||
---Draw a filled rectangle from (x1,y1) to (x2,y2) with the given color
|
||||
function draw.rectf(x1, y1, x2, y2, color) end
|
||||
---Draw a filled rectangle at (x,y) of size (w,h) with the given color
|
||||
function draw.rectf(x, y, w, h, color) end
|
||||
|
||||
---@param x number
|
||||
---@param y number
|
||||
@@ -214,6 +214,24 @@ function draw.circ(x, y, r, color) end
|
||||
---Draw a filled cicle at position(x,y) with radius r and the given color
|
||||
function draw.circf(x, y, r, color) end
|
||||
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param w number
|
||||
---@param h number
|
||||
---@param r number
|
||||
---@param color number
|
||||
---Draw the outline of a round rectangle at (x,y) of size (w,h) with border radius r and the given color
|
||||
function draw.rrect(x, y, w, h, r, color) end
|
||||
|
||||
---@param x number
|
||||
---@param y number
|
||||
---@param w number
|
||||
---@param h number
|
||||
---@param r number
|
||||
---@param color number
|
||||
---Draw a filled round rectangle at (x,y) of size (w,h) with border radius r and the given color
|
||||
function draw.rrectf(x, y, w, h, r, color) end
|
||||
|
||||
---@param x1 number
|
||||
---@param y1 number
|
||||
---@param x2 number
|
||||
|
||||
Reference in New Issue
Block a user