How to add physical to graphic

Tks u so much! Articles explain Line drawing algorithm but how to draw from point one to point two. It so hard. You can help me plssss… Tks you.