Can someone help me to find a way to restrict the cloud to a part of the image, preferably forming an oval shape?
I tried to change width in line 12 to (width-100) but the cloud gets cut and that is not what I am looking for.
Thank you for the help
Using the dist() function, we can see if the pixels are close enough to the center. I added some new variables at the top to help with adjusting.
Code:
Thanks. The effect I am looking for is more like a cloud in the middle of the image and not so much like a circle with a cloud pattern. I don’t specially like using loadPixles()/updatePixles() it is just the way I found to do something like a cloud. How would you do it?