I feel like this should be an easy thing to do but my brain is fried. How can I use data from a JSON object in processing.js? I've spent all day trying to figure it out.
My ajax script for storing the json looks like this: obj = JSON.parse(response);
The result of which is this: [{"x":20,"y":145},{"x":70,"y":10},{"x":18,"y":50}]...
Hello, let me explain my situation and maybe you can help me. I have a database containing data for thousands of shapes, many of which will eventually be drawn outside my visible 500x500 sketch window. Presently I'm able to navigate through a dozen or so test shapes by dragging the mouse around, like one might do when dragging the mouse in Google Maps to see new image data.
So I guess my question is, should I worry about Processing handling so many shapes at once or not? Should I try to write something to draw them only when they are inside the visible window to boost performance, or is it okay if I make a .pde file with thousands of shapes written inside the draw loop? I'm actually using processing.js if that makes any difference.
I'm new to programming and not quite sure how to approach this. Any advice on databases, etc or references to other resources would also be greatly appreciated. Thanks for your input.
Hi, I'm having trouble understanding how or if it's possible to get an easing effect with translate when the mouse is released. So is this possible? Am I moving in the right direction? My goal is to ease a bunch of different shapes together after the user releases the mouse, similar to the interaction on google maps. Any feedback would be greatly appreciated. I am new to processing and programming in general.