# icons

Source: https://ref.dm-lang.org/DM/icon/

An icon file may be referenced by putting single quotes around the filename. The file extension determines the type of icon. Currently supported icon types are `.dmi`, `.bmp`, `.png`, `.jpg`, and `.gif`. To create dmi icons, use the Dream Maker icon editor. This allows you to make animations, 4 or 8 directional icons, and icons with different states (such as "live" and "dead").

```dm
mob
    icon = 'monster.dmi'
```

You can also load icons into memory at run-time and manipulate the graphical data to produce new icons dynamically. This is done by creating an [/icon](https://ref.dm-lang.org/icon/index.md) object.

### See also
- [FILE_DIR definition](https://ref.dm-lang.org/DM/preprocessor/define/FILE_DIR.md)
- [cache](https://ref.dm-lang.org/DM/cache.md)
- [flick proc](https://ref.dm-lang.org/proc/flick.md)
- [icon](https://ref.dm-lang.org/icon/index.md)
- [icon var (atom)](https://ref.dm-lang.org/atom/var/icon.md)
- [icon_state var (atom)](https://ref.dm-lang.org/atom/var/icon_state.md)
- [image objects](https://ref.dm-lang.org/image/index.md)

## Pages

- [icon arithmetic](https://ref.dm-lang.org/DM/icon/arithmetic.md)
