![]() Preserved Topic: Circle function |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() Well i'm trying to learn all that i can, but is hard sometimes..... so, there we go: |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() http://www.dansteinman.com/dynduo/en/geometric-circle.html |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() A looooong time ago I posted an answer to an identical questoin at the Gurus Network, but it seems to have been deleted. I'll say later, I'm real busy now... |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() ~gets some pop corns, coffee and sits down waiting for Slime~ |
Neurotic (0) Inmate Newly admitted |
![]() milk, cream, or sugar wakkos? *sits down waits and drinks his irish creme coffee* |
Maniac (V) Mad Scientist From: New California |
![]() Wakkos, |
Maniac (V) Inmate From: Brisbane, Australia |
![]() Here's how i'd make div animate in a circular motion. |
Paranoid (IV) Inmate From: Lebanon |
![]() There was also not a very old post like this one and user RoyV or RoyW posted a very nice and small code for it, so for more info check back two or three weeks.. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() You can find the old topic, where RoyW posted his code here: http://www.ozoneasylum.com/Forum2/HTML/000939.html |
Maniac (V) Inmate From: Brisbane, Australia |
![]() Well, that sure made my code look like crap. heh. At least I know how to do it better now though. |
Bipolar (III) Inmate From: |
![]() Hi Wakkos, code: <HTML>
|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() This one looks easyer to play with than the Docs one (i was calculating the diameter to set the distance between the balls!!!) |
Paranoid (IV) Inmate From: Lebanon |
![]() RoyW, I have a question! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() I'm going to attempt to, very simply, explain the math behind the cosine and sine functions. Most likely you've heard of them as "opposite over hypotenuse" or something like that, I'll show you why that's the case, but I think it's better to explain it like this. |
Bipolar (III) Inmate From: |
![]() It is difficult to explain without diagrams. Do a Lycos search for "Trig Functions". One link I came up with was http://math.usask.ca/readin/trfn.html |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() Wait!! the function that you gave me was right!!! |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
![]() I worked with the Doc's code, but i want to add more, i did it, but it's out of place |
Bipolar (III) Inmate From: |
![]() Are you trying to combine the 2 scripts so you have a static circling object and a circling object that follows the mouse? |
Maniac (V) Mad Scientist From: New California |
![]() |
Bipolar (III) Inmate From: |
![]() Huh? code: Count[j] = Count[j] + (speed*direction);
code: eval(layerstart+"a"+j+layerstyle+layerleft+" = templeftlocation["+j+"]");
code: this.obj.left = x;
|