Attempting to implement Xiaolin Wu's line drawing

No errors, everything LOOKS good, but it's got weird thing happening.