Answered step by step
Verified Expert Solution
Link Copied!

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 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, horizontal line(200,200)100) horizontal line(300,20)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

Students also viewed these Databases questions

Question

Write formal and informal proposals.

Answered: 1 week ago

Question

Describe the components of a formal report.

Answered: 1 week ago

Question

Write formal and informal reports.

Answered: 1 week ago