Help Contents / Graphics / Window Control / scrollCalibrate

scrollCalibrate
scrollCal

realDispacementList scrollCalibrate displacementlist realDispacementList scrollCal displacementlist 

outputs the displacement which scroll will scroll by displacement pixels. This is neccessary because logo coordinates are scaled to window coordinates and scroll can only scroll by whole pixels, which will probably be no integer in logo coordinates. 

So if you want to scroll the screen i.e. by 2 pixels in x direction then you will need to do the following: 

	cs rbox fill 
	_setPos [-400 299] 
	scc=scrollCal [2 0] 
	scroll [800 600] scc 


previous: scroll	next: rotatescene
