line drawing algoritm | ScratchStats