# pixloc

Source: https://ref.dm-lang.org/pixloc/
Added in BYOND 516.

A primitive type that encapsulates position information for an atom, with pixel movement included. I.e., it contains a turf (loc) and step_x and step_y offsets. Pixlocs can also be built from absolute world coordinates.

The pixloc of an atom is taken from its loc and step_x/y vars only. If you want the pixloc of its bounds edges or its center, use the [`bound_pixloc()` proc](https://ref.dm-lang.org/proc/bound_pixloc.md) for that.

Pixlocs support some math operations. A [vector](https://ref.dm-lang.org/vector/index.md) can be added or subtracted to a pixloc, and subtracting one pixloc from another will produce a vector. The [%](https://ref.dm-lang.org/operator/modulo.md) and [&#37;&#37;](https://ref.dm-lang.org/operator/modulomodulo.md) operators are supported, returning a vector.

Other supported procs for pixlocs include:

### See also
- [vars (pixloc)](https://ref.dm-lang.org/pixloc/var/index.md)
- [pixloc var (atom)](https://ref.dm-lang.org/atom/var/pixloc.md)
- [pixloc proc](https://ref.dm-lang.org/proc/pixloc.md)
- [bound_pixloc proc](https://ref.dm-lang.org/proc/bound_pixloc.md)

## Pages

- [vars (pixloc)](https://ref.dm-lang.org/pixloc/var/index.md)
