# turn proc (applied to an icon)

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

### Format
> `turn(Icon, Angle)`

### Returns
> The rotated icon.

### Args
- `Icon`: an icon to rotate
- `Angle`: An angle in degrees (clockwise rotation).


```dm /turn/
mob/verb/drink()
   //this effect is very confusing!
   usr.icon = turn(usr.icon,90)
   usr << "Woah!  That stuff is powerful!"
   sleep(200)
   usr.icon = turn(usr.icon,-90)
```

An icon that is not square will not be turned.

If the icon is an /icon datum, a new datum will be created as the result.

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