# Cool lines

**URL:** https://forum.kirupa.com/t/cool-lines/77351
**Category:** open source
**Created:** [January 26, 2005, 6:13pm UTC](https://forum.kirupa.com/t/cool-lines/77351 "2005-01-26T18:13:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonanin](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jonanin](https://forum.kirupa.com/u/jonanin)
#### Post date: [January 26, 2005, 6:13pm UTC](https://forum.kirupa.com/t/cool-lines/77351/1 "2005-01-26T18:13:49Z")

</div>

Hehehe…(-:

Try playing around with the lineTo function by switching around  
dx,dy,\_xmouse,and \_ymouse to different places.

```auto
this.onEnterFrame = function() {
	e = 5;
	for (j=0; j<2*Math.PI; j += 0.1) {
		this.createEmptyMovieClip("a"+e, e++);
		d = this["a"+e];
		d.lineStyle(5, 0xabcdef, 100);
		dx = Math.E * Math.LN10 / Math.asin(dx) + Math.tan(j);
		dy = Math.SQRT1_2 + Math.sqrt(j*j) - Math.LN2;
		d.curveTo(_xmouse, dx, dy, _ymouse);
		x = Math.sin(j)+((Math.random()*200));
		y = Math.cos(2*j)+((Math.random()*200));
		d._x = x+200;
		d._y = y+100;
	}
};

```
