# Quarter Circle thing from Levitated in 25 lines

**URL:** <https://forum.kirupa.com/t/quarter-circle-thing-from-levitated-in-25-lines/176331>\
**Category:** contests\
**Created:** [January 22, 2006, 11:32pm UTC](https://forum.kirupa.com/t/quarter-circle-thing-from-levitated-in-25-lines/176331 "2006-01-22T23:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sciurus](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Sciurus](https://forum.kirupa.com/u/Sciurus)\
**Post date:** [January 22, 2006, 11:32pm UTC](https://forum.kirupa.com/t/quarter-circle-thing-from-levitated-in-25-lines/176331/1 "2006-01-22T23:32:17Z")

</div>

This is the Quarter Circle thing in 25 lines. If anyone can help me make only one thing per grid square, that would be nice 🙂

Click to make a new scene.

```auto

_root.createEmptyMovieClip("rt0", 2);
//1
function drawed(r, a, b, c, d, e, f, g, h, x, y) {
    ro = 2;
    //2
    hue = new Array("555500","666600", "777700", "888800", "999900", "AAAA00", "BBBB00", "CCCC00","DDDD00");
    //3
    color = hue[random(hue.length)];
    //4
    r.lineStyle(1, "0x"+color, 100);
    //5
    r.beginFill("0x"+color, 100);
    //6
    r.moveTo(a+x, b+y);
    //7
    r.lineTo(c+x, d+y);
    //8
    r.curveTo(e+x, f+y, g+x, h+y);
    //9
    r.endFill();
    //10
}
i = 1;
//11
onEnterFrame = function () {
    if (i<50) {
        // 12
        drawed(rt0, 0, 0, 50, 0, 50, 50, 0, 50, random(11)*50, random(8)*50);
        // 13
        drawed(rt0, 50, 0, 50, 50, 0, 50, 0, 0, random(11)*50, random(8)*50);
        // 14
        drawed(rt0, 50, 50, 0, 50, 0, 0, 50, 0, random(11)*50, random(8)*50);
        // 15
        drawed(rt0, 0, 50, 50, 50, 50, 0, 0, 0, random(11)*50, random(8)*50);
        // 16
        i ++
        // 17
    }
};
onMouseDown = function () {
    if (i>49) {
        // 18
        i = 1;
        // 19
        rt0.removeMovieClip();
        // 20
        _root.createEmptyMovieClip("rt0", 2);
        // 21
    }
};

```

[FONT=Courier New][LEFT]  
[/LEFT]  
[/FONT]
