I'm working with the Philips Hue API and its a RESTful Web api, which is great. But I have no idea how to make a PUT/POST/GET request from Processing- Is there a library or a series of examples I could work from?
I have a Processing app that captures a bunch of dense sensor data from an Arduino and writes it to an XML file. When the user presses a certain key, the file closes and the application shuts down. At this point, I'd like to take that complete XML file and upload it to the web.
The problem is that all of the Processing libs I've seen that deal with uploads seem to only work with images. I'm sure the solution is quite simple, I'm just a little lost at the moment.
So, I get (And like!) how pixel[] works- A 10x10 grid has an array of size 100.
My problem is figuring out how to get the array index of a clicked pixel. In a 640x480 display, if I click at 320,239 what index is that in pixel[]? I figure there's some very simple math here I'm just not seeing.