simple pendulam 2D digital animation