Computer Science Canada Quick question on co-ordinates |
Author: | xHoly-Divinity [ Tue Nov 30, 2004 10:20 pm ] |
Post subject: | Quick question on co-ordinates |
Ok, the default location for the coordinates (0,0) is at location 0,0 (bottom left corner). I was wondering if you could change this to set the default location of 0,0 in the middle because I am making a graph and this would be much easier..... is this possible? |
Author: | Delos [ Tue Nov 30, 2004 10:50 pm ] | ||
Post subject: | |||
No, you can't change this. But, you can alter your code to make as if your centre is in the middle...
|
Author: | Mazer [ Wed Dec 01, 2004 8:40 am ] | ||
Post subject: | |||
And if you don't want to be adding to the coordinates each time manually, you could make your own draw procedures that just call the regular ones. eg:
In this case, we're making the origin 50. You could change that to whatever you'd like (it'd probably be best to make that a constant so you could make changes easier). |
Author: | wtd [ Wed Dec 01, 2004 2:05 pm ] | ||
Post subject: | |||
Ack! All of those variables... Records, people, records! ![]()
|
Author: | SuperGenius [ Wed Dec 01, 2004 5:41 pm ] |
Post subject: | |
Records might be a little confusing for a lot of people...I never learned them in gr. 10 myself. |
Author: | wtd [ Wed Dec 01, 2004 6:27 pm ] |
Post subject: | |
SuperGenius wrote: Records might be a little confusing for a lot of people...I never learned them in gr. 10 myself.
Everything's confusing the first time you see it. You just have to use them to get used to them. |