The Default color of line using stroke() is black So to change the color of line use strokeStyle property.
Code
Fig7
Output
Fig8
The Default color of line using stroke() is black So to change the color of line use strokeStyle property.
Code
Fig7
Output
Fig8