Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then the y - values for the endpoints are
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then the yvalues for the endpoints are the same. The parameters to your function should be the y location and the length. All of your lines should start at x position Your function must be named horizontal line For example if you call: horizontal line; you should get a horizontal line of length starting at position and going to position To draw a line, you will use the Line function that is similar to how we draw circles and rectangles. Use the examples in Docs tab to help out. If you call the following line: horizontalline horizontal line horizontal line
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started