A texture.
public LuaColor GetPixel(int x, int y)
Get the pixel value at this position.
Arguments
(int) The x position. [x]
(int) The y position. [y]
Returns: (Color) The color of this pixel
public void SetPixel(int x, int y, LuaColor color)
Set the pixel at a given position.
Arguments
(int) The x position. [x]
(int) The y position. [y]
(Color) The new color of this pixel. [color]
public LuaVector3 GetDimensions()
Get the dimensions of this image.
Returns: (Vector2) The dimensions encoded as a [width, height] Vector2.