The program runs, but the problem that I am having is converting the x,y Cartesian points to pixel points so I can print them out on the screen. The way the program is, it plots the points, but they are backwards, and the points need to fill the entire screen, however it only fills the upper left hand corner...

Please post the code you are having problems.
Is the problem with the y values? Java has y=0 ay the upper left vs the lower left.

To fill the whole screen, you will need to map the x,y values to the x,y values shown on the screen.

April 6th, 2012, 10:25 AM

zmontoya94

Re: Chaos Problems.

When the image prints in the window, it is backwards, meaning the side that is on the left should be on the right. Which is probably a problem with the y values. What do you mean map the x,y values, sorry, I'm kinda new at this...

April 6th, 2012, 10:29 AM

Norm

Re: Chaos Problems.

Quote:

map the x,y values,

If your x,y values range from 10 to 50 and the screen size is 100, you need to "map" your values to the range of values of the screen. For example your 10 would be at the screen's 0 and your 50 would be at the screen's 100.

Your description of the reversing of the image sounds like its the x axis problem, not the y values.

April 6th, 2012, 10:40 AM

zmontoya94

1 Attachment(s)

Re: Chaos Problems.

Quote:

Originally Posted by Norm

. For example your 10 would be at the screen's 0 and your 50 would be at the screen's 100.

Your description of the reversing of the image sounds like its the x axis problem, not the y values.

Ok, if that is what mapping is then it is done. I went ahead and took a screen shot of what is being painted on the screen.Attachment 1153

So that part on the left needs to be on the right, I will try and change something on the x values.