# Sandbox.Graphics.DrawQuad

```csharp
static void DrawQuad(in Rect rect, in Material material, in Color color, RenderAttributes attributes = null)
```

Draw a quad in screenspace

### Parameters

- `in rect` (`Rect`)
- `in material` (`Material`)
- `in color` (`Color`)
- `attributes` (`RenderAttributes`), default `null`

Declared in [Sandbox.Graphics](/api/Sandbox.Graphics).
Assembly: `Sandbox.Engine`.
