# Fading mousetrailer - drawing API & arrays

**URL:** <https://forum.kirupa.com/t/fading-mousetrailer-drawing-api-arrays/80719>\
**Category:** Uncategorized\
**Created:** [February 24, 2005, 4:41am UTC](https://forum.kirupa.com/t/fading-mousetrailer-drawing-api-arrays/80719 "2005-02-24T04:41:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eilsoe](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@eilsoe](https://forum.kirupa.com/u/eilsoe)\
**Post date:** [February 24, 2005, 4:41am UTC](https://forum.kirupa.com/t/fading-mousetrailer-drawing-api-arrays/80719/1 "2005-02-24T04:41:43Z")

</div>

ok, this thing is something small I whipped up at school. Up until now I could never really figure out the best way to store mouse coordinates correctly, until someone mentioned arrays.

it works by storing the mouse coordinates in 2 arrays, then it just replaces the first entry of each per frame, and removes the last, then a line is drawn. 1 line per 2 entrys, to make the fading effects work.

in this version, I added a thickness button just for haha’s 🙂

[swf=http://www.avalon-rev.dk/junk/kirupa/linerestriction\_04.swf]height=400 width=500[/swf]

_edit_

I’ll have the source up soon, I forgot it at school :sure: of course I only got the swf file home with me (??)
