Pixel.new
Available since version: in development
Description:
Constructor to create a Pixel with texture in letterbox mode. Every texture will be fitted into Pixel dimensions with preserving texture aspect ratio.
Syntax:
Pixel.new(texture [, width, height, texture_scale_x, texture_scale_y, texture_x, texture_y])
Parameters:
- texture: (Texture) texture to use for the pixel
- width: (number) width of the Pixel
- height: (number) height of the Pixel
- texture_scale_x: (number) horizontal scale of the pixel texture
- texture_scale_y: (number) vertical scale of the pixel texture
- texture_x: (number) horizontal position of the pixel texture
- texture_y: (number) vertical position of the pixel texture