drawing a square texture inside a trapezoid (quadrilateral with at least one pair of parallel sides), the "RES" variable is the size of the pen the "texture" list is in combined rgb format (256^2 * red + 256 * green + blue)
Feel free to use it (credit me), it can be useful for 3d project.