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.
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.