subject

Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then the y-values 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 0. Your function must be named horizontal_line For example if you call: horizontal_line(100, 200); you should get a horizontal line of length 200 starting at position (0, 100) and going to position (200, 100). 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: horizontal_line(100, 200) horizontal_line(200, 100) horizontal_line(300, 20) your canvas should look like:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:50
You have just been hired as an information security engineer for a large, multi-international corporation. unfortunately, your company has suffered multiple security breaches that have threatened customers' trust in the fact that their confidential data and financial assets are private and secured. credit-card information was compromised by an attack that infiltrated the network through a vulnerable wireless connection within the organization. the other breach was an inside job where personal data was stolen because of weak access-control policies within the organization that allowed an unauthorized individual access to valuable data. your job is to develop a risk-management policy that addresses the two security breaches and how to mitigate these risks.requirementswrite a brief description of the case study. it requires two to three pages, based upon the apa style of writing. use transition words; a thesis statement; an introduction, body, and conclusion; and a reference page with at least two references. use a double-spaced, arial font, size 12.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
question
Computers and Technology, 24.06.2019 09:40
Healthy study habits are best described as
Answers: 1
You know the right answer?
Write a function that draws horizontal lines on the graphics canvas. If a line is horizontal, then t...
Questions
question
English, 04.11.2020 19:10
question
Mathematics, 04.11.2020 19:10
question
Chemistry, 04.11.2020 19:10
question
Mathematics, 04.11.2020 19:10
Questions on the website: 13722360