# What am i missing? (createImage)

**URL:** <https://discourse.processing.org/t/what-am-i-missing-createimage/470>\
**Category:** Coding Questions\
**Created:** [May 28, 2018, 4:28pm UTC](https://discourse.processing.org/t/what-am-i-missing-createimage/470 "2018-05-28T16:28:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [May 28, 2018, 4:40pm UTC](https://discourse.processing.org/t/what-am-i-missing-createimage/470/3 "2018-05-28T16:40:54Z")

</div>

BtW, Arrays::**fill()**:

- [https://Docs.Oracle.com/javase/10/docs/api/java/util/Arrays.html#fill(int[],int)](https://Docs.Oracle.com/javase/10/docs/api/java/util/Arrays.html#fill(int%5B%5D,int))

Over the PImage::_pixels[]_:

- [https://Processing.org/reference/PImage\_pixels.html](https://Processing.org/reference/PImage_pixels.html)

Is much faster than any loop! 💪

---

_[View the full topic](https://discourse.processing.org/t/what-am-i-missing-createimage/470)._
