Implementing Line Drawing Algorithm

# Introduction In computer graphics, a line is a basic element that can be drawn on a screen. Drawing a line on a screen involves setting the corresponding bits in the screen's memory. In this challenge, we will implement a method that draws a line on a screen given its width and two absolute pixel positions.

|60 : 00

Click the virtual machine below to start practicing