# Drawing thing

**URL:** https://forum.kirupa.com/t/drawing-thing/175327
**Category:** contests
**Created:** [January 13, 2006, 1:10pm UTC](https://forum.kirupa.com/t/drawing-thing/175327 "2006-01-13T13:10:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gelatine\_Cow](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@Gelatine\_Cow](https://forum.kirupa.com/u/Gelatine_Cow)
#### Post date: [January 13, 2006, 1:10pm UTC](https://forum.kirupa.com/t/drawing-thing/175327/1 "2006-01-13T13:10:57Z")

</div>

I dunno what to call this, but it’s the first idea I had when i saw this comp

```auto
_global.colour = (Math.random()*0x888888)+0x888888;
_global.numlines = 0;
_root.createEmptyMovieClip("slate_mc", 1000).onEnterFrame = function() {
 this.lineStyle(5, (_global.colour), 100);
 this.i--;
 if (this.i<=0) {
  this.i = _global.numberClips;
 }
 this.duplicateMovieClip("copy"+this.i, Math.max(this.i, 1)).onEnterFrame = function() {
  this._alpha = this._xscale=this._yscale -= 100/_global.numberClips;
  if (this._xscale<=1) {
   this.removeMovieClip();
  }
 };
};
_root.slate_mc.i = _global.numberClips=20;
_root.slate_mc._x = _root.slate_mc._y=Stage.width/2;
_root.onMouseMove = function() {
 if (_global.numlines*_global.numberClips>=3250) {
  clearDraw();
 }
 slate_mc.lineTo(_root.slate_mc._xmouse, _root.slate_mc._ymouse);
 _global.numlines++;
};
_root.onMouseDown = function() {
 _global.colour = (Math.random()*0x888888)+0x888888;
 clearDraw();
 slate_mc.moveTo(_root.slate_mc._xmouse, _root.slate_mc._ymouse);
};
function clearDraw() {
 _root.slate_mc.clear();
 _global.numlines = 0;
}

```

nowhere near as cool as everyone else’s but anyway…
