Thanks Glen, Danny, and Mark, I'll give these a try!
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http
> var radius = Math.pow( a * c, angle );
Ooops, should be:
var radius = a * Math.pow( c, angle );
And angle is in radians, so Math.PI * 2 is a full circle. It's what
Math.atan2() gives you (not so incidentally), so if you want to tie it
to a mouse pos...
Mark
On 9/11/07, Mark Winterhalder <[EM
Hi Jason,
to translate the Wikipedia page:
var c = Math.pow( (1 + Math.sqrt( 5 )) / 2, 2 / Math.PI );
var a = aPositiveRealNumber; // like, 1
// in your loop:
var radius = Math.pow( a * c, angle );
var x = Math.cos( angle ) * radius;
var y = -Math.sin( angle ) * radius;
You keep incrementing an
What is a golden spiral?
http://en.wikipedia.org/wiki/Golden_spiral
"In geometry, a golden spiral is a logarithmic spiral whose growth factor b
is related to φ, the golden ratio. Specifically, a golden spiral gets wider
(or further from its origin) by a factor of φ for every quarter-turn it
ma
Hi,
I think you need to do Rectangular to Polar conversion after working
out your r value based on your angle.
Assuming c is calculated by
c = \varphi ^ \frac{2}{\pi} = 1.358456
Then here is some psuedocode.
for(angle = 0;angle < revolutions;angle += step) {
c = 1.
\I'm no math whiz, does anyone know how I can draw a golden spiral and position
and move sprites/movieClips along a golden spiral path?
What is a golden spiral?
http://en.wikipedia.org/wiki/Golden_spiral
"In geometry, a golden spiral is a logarithmic spiral whose growth factor b is
related to
6 matches
Mail list logo