# How does one add textures to weapons?

**URL:** https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070
**Category:** The Lab
**Created:** [July 31, 2017, 2:58pm UTC](https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070 "2017-07-31T14:58:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DeWolf](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)
#### Post date: [July 31, 2017, 2:58pm UTC](https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070/1 "2017-07-31T14:58:19Z")

</div>

I see that there is a place to add a symbol and color to an item/weapon but how do you reference that item to a texture in a graphics tileset?

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [July 31, 2017, 5:34pm UTC](https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070/2 "2017-07-31T17:34:06Z")

</div>

You should add some code to \gfx{TILESET\_NAME}\tile\_config.json like this:

```auto
        {
          "id": "broadsword",
          "fg": 2490,
          "bg": 621,
          "rotates": false
        },
```

---

<div class="post-metadata">

### Author: ![DeWolf](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@DeWolf](https://discourse.cataclysmdda.org/u/DeWolf)
#### Post date: [July 31, 2017, 8:02pm UTC](https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070/3 "2017-07-31T20:02:31Z")

</div>

So what does “fg” and “bg” stand for or what do they represent?

---

<div class="post-metadata">

### Author: ![Litppunk](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/litppunk/32/409_2.png) [@Litppunk](https://discourse.cataclysmdda.org/u/Litppunk)
#### Post date: [July 31, 2017, 10:18pm UTC](https://discourse.cataclysmdda.org/t/how-does-one-add-textures-to-weapons/14070/4 "2017-07-31T22:18:03Z")

</div>

first guess, Foreground / background
