Does anyone know how a zoom would work on something like a canvas? All the co-ords of the lines and pixels are in types but i can't seem to work out a calculation to get a zoom effect.
Thanks
Matt
Ok i've worked it out now.
For anyone interested -
If you have the x and y values stored and are cycling through drawing them then you can use
axis(x or y) * zoomFactor - (zoomFactor-1)
to find out where to place the first pixel on that axis. Then fill in the blank spaces by adding one on until you've reached the right size.
This should work.