# Shift proc (icon)

Source: https://ref.dm-lang.org/icon/proc/Shift

### Format
> `Shift(dir,offset,wrap=0)`

### Args
- `dir`: direction in which to shift the icon
- `offset`: distance to shift the pixels
- `wrap`: if true, causes shifted pixels to wrap around to the other side


This moves all of the pixels by the specified amount in a direction. For example, Shift(NORTH,1) would move everything one pixel to the north.

By default, pixels that move off the edge are not wrapped around; transparent pixels are shifted onto the other side. Calling with wrap=1 causes it to shift the pixels around to the other side.

### See also
- [dir var (atom)](https://ref.dm-lang.org/atom/var/dir.md)
- [icon](https://ref.dm-lang.org/icon/index.md)
- [procs (icon)](https://ref.dm-lang.org/icon/proc/index.md)
