# Can function allow images as parameters?

**URL:** https://forum.makecode.com/t/can-function-allow-images-as-parameters/422
**Category:** Arcade
**Created:** [August 9, 2019, 5:06am UTC](https://forum.makecode.com/t/can-function-allow-images-as-parameters/422 "2019-08-09T05:06:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![henrym](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/henrym/32/16963_2.png) [@henrym](https://forum.makecode.com/u/henrym)
#### Post date: [August 9, 2019, 5:06am UTC](https://forum.makecode.com/t/can-function-allow-images-as-parameters/422/1 "2019-08-09T05:06:10Z")

</div>

It would be immensely helpful for functional generation of specialized sprites. We now have to resort to using an image array so that the index can be passed as parameters.

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [August 9, 2019, 5:48am UTC](https://forum.makecode.com/t/can-function-allow-images-as-parameters/422/2 "2019-08-09T05:48:08Z")

</div>

Definitely worth discussing, would you be willing to file a quick [feature request on github](https://github.com/microsoft/pxt-arcade/issues/new?template=feature_request.md) for this so we can discuss / track the issue there?

---

<div class="post-metadata">

### Author: ![henrym](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/henrym/32/16963_2.png) [@henrym](https://forum.makecode.com/u/henrym)
#### Post date: [August 9, 2019, 6:23am UTC](https://forum.makecode.com/t/can-function-allow-images-as-parameters/422/3 "2019-08-09T06:23:11Z")

</div>

Thank you for the reply!  
Just did that 😉
