|Gradient of line =||y-step|
Find the gradient of the red line.
First we must find points with whole number coordinates on the red line in order to build a "step".
The vertical part of the step (y-step) = 4
The horizontal part of the step (x-step) = 2
|Gradient of line =||y-step||=||4||= 2|