NOTE: Your backgrounds used with this function must have "Used for 3D" enabled.
NOTE: This does not work on HTML5!
A simple script to draw a rectangle with a background texture. Background texture's size must be a power of two (eg. 32x32px)
The code can be used for whatever (CC0; copyleft)
Added support for script autocompletion