We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi !
I saw many library available for line chart.
I also want zoom in & zoom out function in line chart.
Any library which provide zoom in & zoom out feature.
Thanks
Didn't you try just to use scale() function to zoom in and out?
As i understand scale() command works with still image, when my graph is running, how can i use scale() command with running graph.
Just use it. Animated things are just a succession of still images in sequence. calling scale() in draw, scales each of those frames resulting in scaling the animated stuff...
void setup() { size(300, 300); } void draw() { background(255); //not scaled ellipse(width/8, height/8, frameCount%50, frameCount%50); //scaled scale(4); ellipse(width/8, height/8, frameCount%50, frameCount%50); }
Also you can use get() / image() to zoom. See the magnifier part of the code in this post
https://forum.processing.org/two/discussion/13712/how-to-add-noise-to-the-image-being-drawn#latest
I recently check library which is for processing, but provided examples are not running.
Here is the link
http://jagracar.com/grafica.php
There's also zooming class on giCentre.
Answers
Didn't you try just to use scale() function to zoom in and out?
As i understand scale() command works with still image, when my graph is running, how can i use scale() command with running graph.
Just use it. Animated things are just a succession of still images in sequence. calling scale() in draw, scales each of those frames resulting in scaling the animated stuff...
Also you can use get() / image() to zoom. See the magnifier part of the code in this post
https://forum.processing.org/two/discussion/13712/how-to-add-noise-to-the-image-being-drawn#latest
I recently check library which is for processing, but provided examples are not running.
Here is the link
http://jagracar.com/grafica.php
There's also zooming class on giCentre.