# Getting pixels array

**URL:** <https://discourse.processing.org/t/getting-pixels-array/4872>\
**Category:** Processing for Android\
**Created:** [October 25, 2018, 4:20pm UTC](https://discourse.processing.org/t/getting-pixels-array/4872 "2018-10-25T16:20:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![red\_333](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@red\_333](https://discourse.processing.org/u/red_333)\
**Post date:** [October 25, 2018, 4:20pm UTC](https://discourse.processing.org/t/getting-pixels-array/4872/1 "2018-10-25T16:20:42Z")

</div>

I’ve been trying to access the pixels[] array of the background, but loadPixels() returns the error: The pixels array is not available in this renderer withouth a backing bitmap. I’ve also tried to use get() but it returns: Attempt to read from null array.

---

<div class="post-metadata">

**Author:** ![TheWizardBear](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thewizardbear/32/3552_2.png) [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Post date:** [October 25, 2018, 7:49pm UTC](https://discourse.processing.org/t/getting-pixels-array/4872/2 "2018-10-25T19:49:48Z")

</div>

Surely the background is just one color and you can easily know what that color is without having to use get()/loadPixels().

---

<div class="post-metadata">

**Author:** ![Lexyth](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/lexyth/32/7403_2.png) [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Post date:** [October 26, 2018, 10:09am UTC](https://discourse.processing.org/t/getting-pixels-array/4872/3 "2018-10-26T10:09:47Z")

</div>

Please Post some Code, so that we can See where a possible Problem lies.
