Code: Select all
local img = canvas:newImageData()
img:mapPixel(function(x, y, r, g, b, a)
return r / a * 255, g / a * 255, b / a * 255, a
end)
Code: Select all
local img = canvas:newImageData()
img:mapPixel(function(x, y, r, g, b, a)
return r / a * 255, g / a * 255, b / a * 255, a
end)
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 211 guests