# How to overlay an image over another in P3D

**URL:** <https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959>\
**Category:** Coding Questions\
**Created:** [June 14, 2018, 11:26am UTC](https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959 "2018-06-14T11:26:57Z")\
**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:** [June 14, 2018, 6:54pm UTC](https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959/5 "2018-06-14T18:54:16Z")

</div>

> [@rainfox](#):
>
> ```auto
> /* @pjs preload="duck.jpg"; */
> /* @pjs preload="a.png"; */
> 
> ```

Once Pjs spots the 1st `/*@pjs */` directive comment block within a sketch, it skips the others! ☠⚠💀  
[http://ProcessingJS.org/reference/pjs%20directive/](http://ProcessingJS.org/reference/pjs%20directive/)

---

_[View the full topic](https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959)._
