need to make a grapical clock
Author |
Message |
ek ajanabi
|
Posted: Mon Dec 18, 2006 6:35 pm Post subject: need to make a grapical clock |
|
|
can anyone make a software or giude me thorugh since i m a beginner and can say jus cam in the world or turing? like its ma skool project and need real help wid it...will be glad to hea some responses |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TokenHerbz
|
Posted: Mon Dec 18, 2006 6:56 pm Post subject: (No subject) |
|
|
Alright, well people here like to read proper english, with the exception of people that really cant spell worth crap, like myself.
Open your Turing, type in "time" and press "F9".
Read up, attempt your project, and post the code. If you still cant get anywhere, i will guide you a bit more. |
|
|
|
|
|
Cervantes
|
Posted: Mon Dec 18, 2006 7:14 pm Post subject: (No subject) |
|
|
Is it going to be a digital or analog representation of a clock? If it's analog, you'll have to know some trigonometry. If it's digital, you can get away with simply knowing how to Font.Draw stuff.
You can use the Time module to determine the current time. As TokenHerbz said, read up on the Time module in the Turing help file.
Lastly, you've got to code this yourself, especially since this is a school project. We can offer help and advice, but the code has to be yours. That's the best way to learn (and to stay out of trouble). |
|
|
|
|
|
ek ajanabi
|
Posted: Mon Dec 18, 2006 7:22 pm Post subject: (No subject) |
|
|
its analog clock that tells time and some how date too, so like maybe a rectangle in da middle with date in it...o ya it has to work too..lol |
|
|
|
|
|
Cervantes
|
Posted: Mon Dec 18, 2006 7:54 pm Post subject: (No subject) |
|
|
Okay, it's analog. So you need to know how to use trigonometry. I suggest you get out a pen and paper and start working out the math of the situation. Assuming you have a number between 0 and 59 that represents minutes, can you draw a line from an origin to a point on a circle that represents the minute hand? |
|
|
|
|
|
BenLi
|
Posted: Mon Dec 18, 2006 8:45 pm Post subject: (No subject) |
|
|
In Addition:
there are 60 positions on the clock. A circle is _______ degrees, therefore the difference in angle between the 60 positions will be the total number of degrees in the circle divided by the 60 positions
you will need to learn how to use the delay () function. The parameter you enter will be the number of milliseconds your program halts. This is one method. This however, will be inaccurate since the trig calculations will take time. So you may opt to do something along the lines of if Time.Elapsed mod 100 = 0
the date display is fairly simple, look up Time.SecStr in turing reference |
|
|
|
|
|
BenLi
|
Posted: Mon Dec 18, 2006 8:48 pm Post subject: (No subject) |
|
|
apologies for double posting, but you can use a combination of Time.Sec and put Time.SecDate to get the date and time directly from the computer. The question is, what is your teacher looking for? |
|
|
|
|
|
ek ajanabi
|
Posted: Wed Dec 20, 2006 6:47 pm Post subject: (No subject) |
|
|
how would i keep the lines in the box and move it?
var hour,minuit,second,a,b,c:real
a:=1
b:=1
c:=1
a:=a+1
Draw.Oval (200, 200, 150, 150, brightred)
Draw.ThickLine (200,200,200,200,5,black)
Draw.ThickLine (200,200,200,50,2,black)
Draw.ThickLine (200,200,200,60,2,red)
Draw.ThickLine (200,200,150,55,2,green) |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TokenHerbz
|
Posted: Wed Dec 20, 2006 8:11 pm Post subject: (No subject) |
|
|
This isn't a digital clock, So you'r going to need to know trig to calculate where do draw your hands. |
|
|
|
|
|
ek ajanabi
|
Posted: Wed Dec 20, 2006 8:29 pm Post subject: (No subject) |
|
|
cant some one jus do it for me plz....lol
ya i no i need to but dont understand anythin |
|
|
|
|
|
Prince Pwn
|
Posted: Wed Dec 20, 2006 9:21 pm Post subject: (No subject) |
|
|
Watch out people freak out on these forums if you ask for someone else to do it.
It's best if you just tell the teacher you don't understand anything and force him to make it understandable for you or get him fired
Usually it takes a person who is taking programming for a credit and nothing else will never fully understand anything about programming. |
|
|
|
|
|
Hackmaster
|
Posted: Wed Dec 20, 2006 11:06 pm Post subject: (No subject) |
|
|
I am one of those people who freaks!!!
I will try and contain my anger for this one... it is your first offense.
don't.... ask people to do things for you. read up on some tutorials. the Turing Walkthrough is a Great Place to start. and, if you need help beyond what the people here will do, then yell at your teacher. He's the one who needs to take some flak here.
so... ya. read. talk. don't ask people to do things for you. no one likes a whiner, and no one likes it when someone says "I'm a moron... do my work for me..." Turing is easy enough to start up that if you made this account, you should be able to do this just fine.
sorry...that kinda stuff just rubs me the wrong way. |
|
|
|
|
|
|
|