Function CanvasItem.drawTextureRect

Draws a textured rectangle at a given position, optionally modulated by a color. If transpose is true, the texture will have its X and Y coordinates swapped.

void drawTextureRect (
  Texture texture,
  const(Rect2) rect,
  const(bool) tile,
  const(Color) modulate = Color(0.00000F, 0.00000F, 0.00000F, 1.00000F, ).this(1.00000F, 1.00000F, 1.00000F, 1.00000F),
  const(bool) transpose = false,
  Texture normal_map = Texture(godot_object(null), )
) nothrow @nogc;