fungsi scanLineRelative nya stabil