I need to make a spiral spin on a stage and would ideally like the out edges of the spiral to be progressively bigger than the inner lines.
(jpg included to illustrate)
Not so hot on my AS but this is what I have got so far (pieced together from a free spiral example)
Thanks in advance for help.
(jpg included to illustrate)

Not so hot on my AS but this is what I have got so far (pieced together from a free spiral example)
function spiral(centerX, centerY, radius, sides, coils, rotation){
//
with(this){// Draw within the clip calling the function.
//
// Start at the center.
moveTo(centerX, centerY);
//
// How far to step away from center for each side.
var awayStep = radius/sides;
//
// How far to rotate around center for each side.
var aroundStep = coils/sides;// 0 to 1 based.
//
// Convert aroundStep to radians.
var aroundRadians = aroundStep * 2 * Math.PI;
//
// Convert rotation to radians.
rotation *= 2 * Math.PI;
//
// For every side, step around and away from center.
for(var i=1; i<=sides; i++){
//
// How far away from center
var away = i * awayStep;
//
// How far around the center.
var around = i * aroundRadians + rotation;
//
// Convert 'around' and 'away' to X and Y.
var x = centerX + Math.cos(around) * away;
var y = centerY + Math.sin(around) * away;
//
// Now that you know it, do it.
lineTo(x, y);
}
}
}
//
//
//
// spiral(centerX, centerY, radius, sides, coils, rotation).
//
// Big center spirals.
lineStyle(27, 0x009000);// Line thickness / colour .
spiral(450, 235, 1000, 900, 16, 0);
Thanks in advance for help.