Cancelled

To draw an "Ellipse" to the given parameters.

Purpose of Task:

To draw an "Ellipse" to the given parameters.

Definition of Function to be edited:

drawEllipse(x, y, rx, ry, nSteps)

The ellipse should be drawn with its centre at the given co-ordinates (x and y) and with radius of (rx and ry).

Since it is impossible to draw a perfect Ellipse on the screen, in practice, an Ellipse is normally approximated by a set of short, straight lines; the more lines, the better the "Ellipse". In this case the final parameter (nSteps) defines how many line segments to divide the Ellipse into.

Note: The co-ordinates of any point on the edge of an Ellipse centred at the origin may be obtained from the following equations.

X = RadiusX * cosine(*) Y = RadiusY * sine(*)

{where * is an angle.}

The JavaScript functions [url removed, login to view] (angle) and [url removed, login to view] (angle) can be invoked, but they require the angle to be given in radians.

Note: To convert an angle from degrees to radians multiply the angle by */180 (where * = 3 .1415926).

Getting Started

The Task 1 folder contains the files you need.

When you click on the “New Ellipse” button it reads in the parameter values from the user interface and calls the function newEllipse (…) to draw the circle.

A red cross is drawn at the centre of the Ellipse and a green “radiusX-line” so that you can check that your Ellipse is drawn in the correct position and at the correct size.

Screen shot from Task 1 without changes made

Screen shot from Task 1 with changes made

There is no data file for this program; when you run the application, you will be asked to enter:

• X and Y of circle

• Radius X

• Radius Y

• Number of Steps

N.B. The X and Y axes have their origin in the centre of the drawing area which is of size 800 by 600. (Each square is 10 x 10 pixels)

Further Guidance

• You will find that the drawEllipse (…) function already exists in “[url removed, login to view]”, although it does not work correctly; you need to modify it.

• Only edit the drawEllipse (…) function.

• To help you with choosing coordinates for testing your code note that the drawing area has a coordinate range from (–400 to +400 in X) & (-300 to + 300 in Y), with the origin in the centre.

• Remember to test your Ellipse with a range of values for position, radius and steps.

Skills: Computer Graphics, Graphic Design, Java

See more: artists compete draw idea, artist draw poster, art designs draw, green cross remedies, marketing green cross, green cross marketing director, check application run usb, check css cross browser, marketing manager green cross, applet draw graph parameters, check popups cross browser, check site cross

About the Employer:
( 1 review ) leeds, United Kingdom

Project ID: #11726473

17 freelancers are bidding on average £92 for this job

cijagani

‌I have a lots of experience in PHP MVC,MySQL, Wordpress, Codeigniter, laravel and Web Designing. my aim to deliver quality products to our customers within specified deadline. If hired by you I will put in my best w More

£100 GBP in 2 days
(36 Reviews)
7.3
graphicking61

Hi, I just checked the description you have provided regarding the project and would be a pleasure to assist you on your project. I will work with full dedication to give you the best output within the desired timef More

£25 GBP in 0 days
(353 Reviews)
6.9
utkarshkatiyar19

A proposal has not yet been provided

£321 GBP in 10 days
(52 Reviews)
6.8
parul6789

Hi, I have gone through your project requirements and would be glad to work with you on your current project. I am confident enough to complete this project with total accuracy in order to give you the desired outpu More

£30 GBP in 1 day
(248 Reviews)
6.9
asadrana91

need an A grade?contact me.

£111 GBP in 2 days
(64 Reviews)
6.2
elenakalashnik

Hello! I'm super-cool photoshoper and I can make really high-quality job for you. Of course I also work in other programs. I am working ONLY till full satisfaction of employer. You can see my profile and be con More

£150 GBP in 5 days
(47 Reviews)
6.0
usmanshery

Hi i'm software engineer and expert java developer. I have experience in graphics work in java and have developed graphical projects and games. Please contact me and discus details Regards Usman Shery

£50 GBP in 1 day
(23 Reviews)
4.7
deepakmishra1988

Hi, I'm strong in co-ordinate geometry and have 7 years of experience in java/js. I have worked on java swing, java2d, canvas. The co-ordinate geometry remains the same. I can do this well and quickly. Ellipses ar More

£150 GBP in 3 days
(26 Reviews)
4.6
yakubpune

WISHING YOU PEACE IN YOUR LIFE. I have more than 8 years of experience in JAVA. The breakup of experience as per best of my knowledge: Graphics : Using c/c++/Java-Swings/Java Applets Spring2.x - 3.x : 2year More

£125 GBP in 5 days
(8 Reviews)
4.3
£111 GBP in 2 days
(3 Reviews)
2.2
DominikDaniels

I'm Certified Java SE 7 Programmer I. I've done couple of projects regarding this topic (see in my profile). I make desktop applications in Swing and JavaFX frameworks. My last application was dedicated for an Orac More

£111 GBP in 3 days
(1 Review)
1.2
dniazi44

Easy project that I can do for very low price. I have a lot of experience in Java and other languages.

£20 GBP in 1 day
(0 Reviews)
0.0
£244 GBP in 3 days
(1 Review)
0.0
indeptharts

Hello, I am experienced in javascript and good in mathematics too(Am a Mechatronic Engineering Undergraduate). I can finish the task in one day. I have built sites with complex javascript functions in php and [url removed, login to view] More

£20 GBP in 1 day
(0 Reviews)
0.0
amansapra93

A proposal has not yet been provided

£44 GBP in 1 day
(0 Reviews)
0.0
ExperSolutions

We are team of excellent developers and writers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description More

£153 GBP in 3 days
(0 Reviews)
0.0
giopld

Please add Me S,k,y.p,e Id--- giopld for more discus ************************************************************************************

£20 GBP in 1 day
(0 Reviews)
0.0
mln90

A proposal has not yet been provided

£20 GBP in 1 day
(0 Reviews)
0.0