# Grid effect

**URL:** <https://forum.kirupa.com/t/grid-effect/183658>\
**Category:** Uncategorized\
**Created:** [March 29, 2006, 1:57am UTC](https://forum.kirupa.com/t/grid-effect/183658 "2006-03-29T01:57:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mofongo9](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mofongo9](https://forum.kirupa.com/u/mofongo9)\
**Post date:** [March 29, 2006, 1:57am UTC](https://forum.kirupa.com/t/grid-effect/183658/1 "2006-03-29T01:57:10Z")

</div>

i came up with the idea in science class and made it when i got home. just look, its not really useful in any way, like all of my source codes, but its just cool to watch and play around with. im not going to post the .swf because the fun of this code is adjusting it, which you need to use flash to do. when im done with my homework, ill make a version which is adjustable in the swf.

```auto
X = 0;
Y = 0;
xsource = 0;
//adjust xsource to adjust the xaxis point of the grid
ysource = 350;
//adjust ysource to adjust the yaxis point of the grid
xspacing = 12.5;
//adjust xspacing to adjust the amount of space between lines in the grid, horizontally.
yspacing = 12.5;
//adjust yspacing to adjust the amount of space between lines in the grid, vertically.
_root.createEmptyMovieClip("l", 1);
l.lineStyle(1, 0x000000, 100);
onEnterFrame = function () {
    if (Y<=ysource) {
        l.moveTo(xsource, Y);
        l.lineTo(X, ysource);
        X += xspacing;
        Y += yspacing;
    }
};

```

---

<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:** [March 29, 2006, 3:15am UTC](https://forum.kirupa.com/t/grid-effect/183658/2 "2006-03-29T03:15:05Z")

</div>

I remember i made somtin like that a few years ago. I would post it but its quite embarrassing, the code is well, very very dirty. Was way back in the day of Flash 5. Anyway, it did like squares and hexagons and triangles and stuff, was quite neato, and had like adjustable variables and stuff… Yeah, just thought id mention that… :beam:

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [March 29, 2006, 3:17am UTC](https://forum.kirupa.com/t/grid-effect/183658/3 "2006-03-29T03:17:04Z")

</div>

I don’t have Flash and I’d love to see this. Can’t you post _anything_? ☹

---

<div class="post-metadata">

**Author:** ![mofongo9](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@mofongo9](https://forum.kirupa.com/u/mofongo9)\
**Post date:** [March 29, 2006, 4:22am UTC](https://forum.kirupa.com/t/grid-effect/183658/4 "2006-03-29T04:22:37Z")

</div>

sorry man i just dont have the time

---

<div class="post-metadata">

**Author:** ![evildrummer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evildrummer/32/2308_2.png) [@evildrummer](https://forum.kirupa.com/u/evildrummer)\
**Post date:** [March 29, 2006, 11:16am UTC](https://forum.kirupa.com/t/grid-effect/183658/5 "2006-03-29T11:16:25Z")

</div>

Thats really cool, I have flash but i absolutely suck at it, so for mee thats amazing!!!
