Spiral movement 
Author Message
 Spiral movement

Help!

Can any one tell me how to move a point from the centre of the screen, outward
in a spriral movement.  How does one get the co-ords for moving out spriral.

Thanks Wayne



Thu, 02 Dec 1999 03:00:00 GMT  
 Spiral movement

Quote:

> Help!

> Can any one tell me how to move a point from the centre of the screen,
> outward
> in a spriral movement.  How does one get the co-ords for moving out
> spriral.

> Thanks Wayne

Draw a circle with a constantly growing radius.
So, for instance:

for count:=1 to 1000 do
begin
  x:=100+int((count/10)*sin(count/20));
  y:=100+int((count/10)*cos(count/20));
end;

I don't know about the exact parameters, I didn't try this out, but it
should get you on the way and leave you with something to find out for
yourself as well :-)

Greetns,

Remco de Korte
Soft Machine
Nederland
http://www.xs4all.nl/~remcodek/program.html



Fri, 03 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. spirals

2. Spirals

3. Spiral

4. Intercepting tab movement

5. Mouse Movement

6. Mapping mouse movement

7. Cursor Movement in Pascal

8. Cursor movements..

9. Help :Movement (Graphics Mode)

10. Movement (Graphics Mode)

11. Graphics Movement

12. Movement (Graphics Mode)

 

 
Powered by phpBB® Forum Software