# Translate proc (matrix)

Source: https://ref.dm-lang.org/matrix/proc/Translate

### Format
> `Translate(x,y)`

### Args
- `x`: The amount of scaling to do in the x direction
- `y`: The amount of scaling to do in the y direction


### Returns
> src

The matrix is translated (moved) by the appropriate amounts. The x and y offsets applied by translation are in pixels.

If y is omitted, x is used for both. E.g., Translate(2) is equivalent to Translate(2,2).

### See also
- [matrix](https://ref.dm-lang.org/matrix/index.md)
- [matrix operators](https://ref.dm-lang.org/matrix/operators.md)
- [matrix procs](https://ref.dm-lang.org/matrix/proc/index.md)
