# Differences between image(), createImage and createImg()

**URL:** <https://discourse.processing.org/t/differences-between-image-createimage-and-createimg/36913>\
**Category:** Coding Questions\
**Created:** [May 17, 2022, 7:33am UTC](https://discourse.processing.org/t/differences-between-image-createimage-and-createimg/36913 "2022-05-17T07:33:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teemee](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@teemee](https://discourse.processing.org/u/teemee)\
**Post date:** [May 17, 2022, 7:33am UTC](https://discourse.processing.org/t/differences-between-image-createimage-and-createimg/36913/1 "2022-05-17T07:33:10Z")

</div>

I am curious about these three image functions

- image();
- createImg();
- createImage();

I have read the reference pages but still want some clear explanation.  
Is the creatImage() works with pixel related graphic and the createImg() is for something like Gif image?!?

I also compared two examples from P5.js editor online and found that image(); in the older version of p5.js did not work with gif animation but the newer does today.

Are there anything else that distinct these 3 image functions?

Thanks in advance!
