Parallax (code below)


Parallax scrolling is a 2D rendering technique which provides perspective simulation algorithms by scrolling severals layers on the screen at different speed.


Controls

Use left and right keyboard key control to see what does look like parallax scrolling in this demo.

More details are in the section below. Source code is on the right and the matching comments are on the left.

Canvas not supported