Buy Me a Coffee at ko-fi.com

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: Integer, y: Integer, width: Integer, height: Integer, func: (Vector4, Number, Number) -> Vector4 | nil): Texture
typings.-672261858typings.-672261858typings.-672261858typings.-672261858typings.2067910057typings.246836475
Method PropertyFluent DescriptionRepresentation
x accepts
y accepts
width accepts
height accepts
func accepts
Return Value