Exposes User Data
Returns a Uint8 array containing the pixel values in a region of the texture. The region starts at the pixel coordinates x, y, and extends rightward by width and upward by height. Values returned are integers ranging from 0 to 255.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Sets a region of pixels on the texture. The region starts at the pixel coordinates x, y, and extends rightward by width and upward by height. Uses the values of the passed in Uint8Array data, which should be integer values ranging from 0 to 255.
Provides a texture that can be written to or read from. Can be accessed using Texture.control on a Procedural Texture.
Example