# Transparent images

**URL:** <https://discourse.processing.org/t/transparent-images/3337>\
**Category:** Processing\
**Created:** [September 7, 2018, 12:36am UTC](https://discourse.processing.org/t/transparent-images/3337 "2018-09-07T00:36:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Waboqueox](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/waboqueox/32/5643_2.png) [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Post date:** [October 10, 2019, 1:45pm UTC](https://discourse.processing.org/t/transparent-images/3337/7 "2019-10-10T13:45:52Z")

</div>

Thanks for answer 🤗

Mmmm the problem appears when using a not rect image

Like this one:

> **[Download Snowflake In A Cloud Svg Png Icon Free Download - Icono De...](https://www.pngfind.com/download/oioomw_snowflake-in-a-cloud-svg-png-icon-free/)**
>
> Download hd Snowflake In A Cloud Svg Png Icon Free Download - Icono De Descargas, Transparent Png and upload and share your own design.

> **Example code**
>
> ```auto
> float rotx = PI/4;
> float roty = PI/4;
> 
> void setup() {
> size(displayWidth, displayHeight, P3D);
> tex = loadImage("cloud.png");
> imageMode(CENTER);
> }
> 
> void draw() {
> background(200,200,0);
> strokeWeight(5);
> for(int i = 0; i < width; i += 50){
> line(i,0,i,height);
>   
> }
> translate(width/2.0, height/2.0, 100);
> rotateX(rotx);
> rotateY(roty);
>   
> if ( dotint ) tint(0,200,200,100);
> else noTint();
>   
> image(tex,0/2,0/2);
> }
> 
> void mouseDragged() {
> float rate = 0.01;
> rotx += (pmouseY-mouseY) * rate;
> roty += (mouseX-pmouseX) * rate;
> }
> 
> boolean dotint=false;
> 
> void mousePressed() {
> dotint = ! dotint;
> println(" tint: "+dotint);
> }
> 
> ```

 ![Screenshot_20191010-153358](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a25b111669351889bdcd5feac95668905b2262fa.png)  
And have just realized that is not about the tint (In my other app, when I not use the tint, it works well, but the image doesn’t rotate, maybe it depends on the deepness)

---

_[View the full topic](https://discourse.processing.org/t/transparent-images/3337)._
