Texture.applyFunc

Calls the given function on the specified area of this texture, it will iterate over each pixel, giving its current x, y, and color as arguments, the color is a vec4 in RGBA format, and the return value will set that pixel's color
Invalid return values or nil takes no effects
overload 1:
Texture:applyFunc(x, y, width, height, func)
Method Property Fluent Description Representation
x accepts an Integer
y accepts an Integer
width accepts an Integer
height accepts an Integer
func accepts a function that takes a Vector4, a Number and a Number and will return either a Vector4 or nil
Return Value a Texture
a a