Skip to content

Commit 6ef88eb

Browse files
Update gfx2.lua
1 parent 2eba391 commit 6ef88eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AutoComplete/library/gfx2.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ function _acp__Gfx2Texture_:getPixel(x, y) end
239239
---@diagnostic disable-next-line: duplicate-set-field
240240
function _acp__Gfx2Texture_:setPixel(x, y, r, g, b) end
241241

242+
---Sets all the pixels in the table at once
243+
---The table must be in the format of {r, g, b, a} and be the size of width * height * 4
244+
---The values must be between 0 and 255
245+
---You must unload the texture for the changes to apply
246+
---@param pixels integer[] The table of pixels to set
247+
function _acp__Gfx2Texture_:setPixelsFromTable(pixels) end
248+
242249
---Sets the color of a pixel in the texture, you must unload if you used it for changes to apply with opacity
243250
---@param x integer X position of the pixel to get
244251
---@param y integer Y position of the pixel to get

0 commit comments

Comments
 (0)