Sets the texture object's image or color. Returns
nil if the texture could not be set (e.g. if the file path is invalid or points to a file which cannot be used as a texture).
texture- Path to a texture image (
red- Red component of the color (0.0 - 1.0) (
green- Green component of the color (0.0 - 1.0) (
blue- Blue component of the color (0.0 - 1.0) (
alpha- Alpha (opacity) for the color (0.0 = fully transparent, 1.0 = fully opaque) (
1if the texture was successfully changed; otherwise