Computer Science Canada Clock Type Program |
Author: | uberwalla [ Wed Dec 20, 2006 10:22 pm ] | ||
Post subject: | Clock Type Program | ||
Hey, im randomly trying to make a clock and i have it so it moves the arrow things, but i was wondering if theres a way so they stay the same size always (they tend to grow longer/shorter throughout). this is what i got:
thx in advance. |
Author: | Hackmaster [ Wed Dec 20, 2006 10:27 pm ] | ||
Post subject: | |||
Well... it seems pretty easy. all you do is make it MORE graphical. have so that you make a circle around it, and maybe some numbers would be nice. when you are done that, it's easy.
however you want to display that is fine, but, fairly easy I would think...? hope that helped! |
Author: | uberwalla [ Wed Dec 20, 2006 10:31 pm ] |
Post subject: | |
heh that'll probably work well lol ![]() lets just see how well i do with this ![]() |
Author: | Hackmaster [ Wed Dec 20, 2006 10:34 pm ] |
Post subject: | |
no probelm... I'll be on for a bit... work it, then post it again!! ![]() |
Author: | uberwalla [ Wed Dec 20, 2006 11:34 pm ] | ||
Post subject: | |||
ok i know you probably dont wanna do it all for me or w.e, i understand but i need some guidance. i litterally have no idea how to implement it. this is new code with a circle ![]()
please help i got no idea how to make them same length as radius. like i mean i know it has something to do with math like... if x2 - x not= -60 then something end if something like that? im really lost. ![]() |
Author: | richcash [ Thu Dec 21, 2006 12:05 am ] | ||
Post subject: | |||
Why don't you use sine and cosine for something like this?
It would be quite troublesome trying to do this without trigonometry. |
Author: | uberwalla [ Thu Dec 21, 2006 12:11 am ] |
Post subject: | |
wow i have never seen those code words in my life lol (well turing) that shortened my code by 10000x thx a bunch learned a bunch. ![]() ![]() |
Author: | ericfourfour [ Thu Dec 21, 2006 12:16 am ] |
Post subject: | |
uberwalla, I take it you haven't reached grade 10 math yet. I was in the same dilemma when I started programming. Trigonometry is not hard to understand. It just takes a while to learn because of the math behind it (speaking from personal experience). Examine richcash's code. It should do the trick. Try to figure out how it works. I'm sure, if you are unable to figure it out, you could find some tutorials on the internet. |
Author: | ericfourfour [ Thu Dec 21, 2006 12:18 am ] |
Post subject: | |
Err... Woops. Didn't realize you posted after richcash. ![]() |
Author: | uberwalla [ Thu Dec 21, 2006 12:21 am ] |
Post subject: | |
i do know some trig but i just didnt think of using it for the clock ![]() ![]() |
Author: | Hackmaster [ Thu Dec 21, 2006 4:56 pm ] |
Post subject: | |
I don't know what it is... latley there have been a bunch of graphical clocks going around... You should check some of the other posts in the area. it must be finals time... ![]() |
Author: | uberwalla [ Thu Dec 21, 2006 5:04 pm ] |
Post subject: | |
actually i just randomly wanted to make one when i saw the other guy trying to make one. mines not for class at all ![]() |
Author: | Hackmaster [ Thu Dec 21, 2006 5:29 pm ] |
Post subject: | |
oh.. well there you go! whatever... good luck anyhow! or just wait till next semester for trig. or go to this wonderus place... it's called "The internet". it is used to gather datums of all kinds... and you can learn it yourself.... ![]() |