# Setting transparency with pixels\[\]

**URL:** <https://discourse.processing.org/t/setting-transparency-with-pixels/501>\
**Category:** Coding Questions\
**Created:** [May 29, 2018, 5:48pm UTC](https://discourse.processing.org/t/setting-transparency-with-pixels/501 "2018-05-29T17:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 30, 2018, 1:04am UTC](https://discourse.processing.org/t/setting-transparency-with-pixels/501/5 "2018-05-30T01:04:22Z")

</div>

> [@What am i missing? (createImage)](https://discourse.processing.org/t/what-am-i-missing-createimage/470/3):
>
> 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! muscle

---

_[View the full topic](https://discourse.processing.org/t/setting-transparency-with-pixels/501)._
