Hi, so I'm kind of confused about how to use APIs. I want to use the
rotten tomatoes API.
So here is what I think we need to do:
We have the base url and the other urls they provide to find specific information, and by using these URLs, it'll return a new URL that we have to parse with an.html parser...Is that right?
Also, even though they only provide examples for Javascript and PHP, I can still use this API for processing, right?
Basically, I have a background image that I'm adding a layer to, and then I want to erase the layer to reveal the background image again.
So I have a PImage copy of the background that I'm getting pixels from, and I want to be able to get the pixel at the place where the mouse is, as well as the space surrounding it. I know the that for the get method, you have get(mouseX, mouseY, xWidth, yHeight), but instead of it getting a square shape of the pixels around it, is there a way to get a circular shape around the point where the mouse is?
Also, for some reason, when I draw onto the screen to reveal the background again, it always reveals itself temporarily, but then the layer covers what I just drew on the screen, but then when I click the screen, everything I drew previously reappears. How do I keep the layer from covering my picture over and over again?
I don't want to have my code floating around the internet since this is a project, so if you want, I can message it to you.
This is probably a really silly question, but how would you make the opacity decrease as you reach the edge of a circle? Right now, I am just stacking increasingly larger semi-transparent circles on top of each other, but the edges are really rough, and you can see where each circle ends. I want a smooth circle that fades to reveal the background as it reaches the edges.