Main Menu
🛠️
Tools
❓
Questions
📝
Quiz
✍️
Test
🎯
GK
Useful Links
SEARCH
Account
More
Which methods are used to draw a straight line on a Canvas?
Asked: Apr 15, 2023
Following methods are used to draw a straight line on a Canvas:
moveTo(x,y) –
It defines the starting co-ordinates of the line.
lineTo(x,y) –
It defines the ending co-ordinates of the line.
The actual line is drawn with the help of a method like
stroke()
Asked by
brijesh
Answers (0)
No answers yet. Be the first to answer!