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 | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| width accepts | typings.-672261858||
| height accepts | typings.-672261858||
| func accepts | typings.2067910057||
| Return Value | typings.246836475
Transforms all pixels in the specified area of this texture by the matrix
If `clip` is true, the resulting colour channels will be clamped between 0 and 1 
overload 1:
Texture.applyMatrix(x: Integer, y: Integer, width: Integer, height: Integer, matrix: Matrix4, clip: Boolean): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| width accepts | typings.-672261858||
| height accepts | typings.-672261858||
| matrix accepts | typings.-1789003661||
| clip accepts | typings.1729365000||
| Return Value | typings.246836475
overload 1:
Texture.fill(x: Integer, y: Integer, width: Integer, height: Integer, rgb: Vector3): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| width accepts | typings.-672261858||
| height accepts | typings.-672261858||
| rgb accepts | typings.2002444080||
| Return Value | typings.246836475
overload 2:
Texture.fill(x: Integer, y: Integer, width: Integer, height: Integer, rgba: Vector4): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| width accepts | typings.-672261858||
| height accepts | typings.-672261858||
| rgba accepts | typings.2002444081||
| Return Value | typings.246836475
overload 3:
Texture.fill(x: Integer, y: Integer, width: Integer, height: Integer, r: Number, g: Number, b: Number, a: Number): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| width accepts | typings.-672261858||
| height accepts | typings.-672261858||
| r accepts | typings.-1950496919||
| g accepts | typings.-1950496919||
| b accepts | typings.-1950496919||
| a accepts | typings.-1950496919||
| Return Value | typings.246836475
overload 1:
Texture.pixel(x: Integer, y: Integer, rgb: Vector3): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| rgb accepts | typings.2002444080||
| Return Value | typings.246836475
overload 2:
Texture.pixel(x: Integer, y: Integer, rgba: Vector4): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| rgba accepts | typings.2002444081||
| Return Value | typings.246836475
overload 3:
Texture.pixel(x: Integer, y: Integer, r: Number, g: Number, b: Number, a: Number): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| r accepts | typings.-1950496919||
| g accepts | typings.-1950496919||
| b accepts | typings.-1950496919||
| a accepts | typings.-1950496919||
| Return Value | typings.246836475
overload 1:
Texture.setPixel(x: Integer, y: Integer, rgb: Vector3): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| rgb accepts | typings.2002444080||
| Return Value | typings.246836475
overload 2:
Texture.setPixel(x: Integer, y: Integer, rgba: Vector4): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| rgba accepts | typings.2002444081||
| Return Value | typings.246836475
overload 3:
Texture.setPixel(x: Integer, y: Integer, r: Number, g: Number, b: Number, a: Number): Texture | Method Property | Fluent Description | Representation |
|---|---|---|
| x accepts | typings.-672261858||
| y accepts | typings.-672261858||
| r accepts | typings.-1950496919||
| g accepts | typings.-1950496919||
| b accepts | typings.-1950496919||
| a accepts | typings.-1950496919||
| Return Value | typings.246836475
listFiles
action_wheel
Action
BlockRaycastTypes