# Hypocycloidage

**URL:** https://forum.kirupa.com/t/hypocycloidage/175185
**Category:** Uncategorized
**Created:** [January 12, 2006, 12:16pm UTC](https://forum.kirupa.com/t/hypocycloidage/175185 "2006-01-12T12:16:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)
#### Post date: [January 12, 2006, 12:16pm UTC](https://forum.kirupa.com/t/hypocycloidage/175185/1 "2006-01-12T12:16:18Z")

</div>

Alrite, this is like the first competition ive ever entered, so lets see how we go. Got the idea from a school project i did a while ago on hypocycloids. So yeah, see how we go. [AS]j = 0  
col = [“0x5A70A3”,“0xA3AFCB”,“0x374562”,“0x315E68”,“0x146485”,“0x06222D”,“0x6BC4E9”,“0xF8A298”,“0xFBDC95”,“0xE8E0A8”,“0xDFD6B0”]  
drawShape(random(10)+5)  
function drawShape(a) {  
b = a\*(random(10)+4)  
var shape = \_root.createEmptyMovieClip(“shape”+j,j++)  
shape.\_x = random(400)  
shape.\_y = random(400)  
i = 0  
shape.lineStyle(random(2)+2, col[random(col.length)], 100);  
shape.moveTo(b, 0);  
shape.onEnterFrame = function() {  
if (i\<2\*Math.PI) {  
x = ((b-a)_Math.cos(i))+(a_Math.cos(((b/a)-1)\*i));  
y = ((b-a)_Math.sin(i))-(a_Math.sin(((b/a)-1)\*i));  
shape.lineTo(x, y);  
i += Math.PI/90;  
} else {  
delete shape.onEnterFrame  
drawShape(random(10)+5)  
}  
};  
}[/AS]  
Thats like less than 25 lines? does that matter, might put some other random things in tomorrow. How many lines is that actually counted as?

[EDIT]Seeing as imports are now not allowed my new version is kaput… ☹

Comments greatly appreciated. 😃
