# Another kirupalab submission

**URL:** <https://forum.kirupa.com/t/another-kirupalab-submission/22214>\
**Category:** Uncategorized\
**Created:** [June 1, 2003, 3:43am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214 "2003-06-01T03:43:28Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![thoriphes](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@thoriphes](https://forum.kirupa.com/u/thoriphes)\
**Post date:** [June 1, 2003, 3:43am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/1 "2003-06-01T03:43:28Z")

</div>

i’m working on a submission myself which i may or may not have ready tomorrow, i’m still working the kinks on it and deciding on how “configurable” it can be. also i’m trying to optimize it, but by the looks of it, i don’t think i can, but i’ll still work on it. anyway, here’s a sneak peak, be ready to hear your CPU yelp in pain as it uses 100% of it (warning):

[http://filebox.vt.edu/users/mdimatul/swf/circles.html](http://filebox.vt.edu/users/mdimatul/swf/circles.html)

(drag mouse to change perspectives)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 5:10am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/2 "2003-06-01T05:10:31Z")

</div>

Thats very cool thor… very cool 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 5:16am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/3 "2003-06-01T05:16:10Z")

</div>

yeah i like that. it was fun to watch, but then i got dizzy… ☹

😛

:trout:

^ (no one uses the trout anymore… )

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 12:12pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/4 "2003-06-01T12:12:10Z")

</div>

Hey thor - that is really nice 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 5:25pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/5 "2003-06-01T17:25:33Z")

</div>

Very nice 🙂 I like it when I have absolutely no idea what the hell is happening in an animation 😛 Only problem is: the perspective “jumps” when I move the mouse without dragging and then press.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 9:52pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/6 "2003-06-01T21:52:41Z")

</div>

yeah, i knew about that problem from the beginning and i was debating on whether or not to fix that.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 2, 2003, 5:55pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/7 "2003-06-02T17:55:35Z")

</div>

ok, i temporarily abandoned that little experiment i had above and went into programming fluid mechanics in flash. so far, all i have is one “line” of water that ripples away when you click at a certain area, like a drop in a vat of water. hopefully, i’ll be able to create a whole pool and simulate real ripples wherever the user clicks. anyway, here’s a sneak peak:

[http://filebox.vt.edu/users/mdimatul/swf/ripples.html](http://filebox.vt.edu/users/mdimatul/swf/ripples.html)

click to simulate a ripple.  
since the buttons are so close, you may have to click twice to get it going.

[update]  
now all you have to do is click, i got rid of the on (release) action and put it directly in the on (press).  
[/update]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 3:49am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/8 "2003-06-04T03:49:36Z")

</div>

ok, here’s what i’ve changed from the previous version:

1. actually a pool now instead of just a line
2. changed the color
3. optimized some of my code (realized that i had a setInterval for an onEnterFrame function which was pretty stupid on my part)
4. changed algorithm

the only problem now is that instead of being round, the ripples take on a more diamond-y shape, i’ll work on that next.

anyway, tell me what you think as well as any suggestions before i submit it to the lab:

[http://filebox.vt.edu/users/mdimatul/swf/ripples.html](http://filebox.vt.edu/users/mdimatul/swf/ripples.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 3:54am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/9 "2003-06-04T03:54:53Z")

</div>

It’s cool and all, but it seriously bogs down my computer :-\ ☹

Then again, my comp sucks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 3:21pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/10 "2003-06-04T15:21:08Z")

</div>

yeah, that’s a problem i’ve been trying to fix. i’m still optimizing some of the code so i’ll have this working smoothly on your computer or anybody else’s computer by today, latest tomorrow. if i have to, i’ll change the “density” of the water so that it runs smoothly on any computer.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 11:42am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/11 "2003-06-05T11:42:33Z")

</div>

Here’s something that came up during a"Challenge" at [as.org](http://as.org). If you want to take a look 🙂 it’s pretty good:

```auto
//RIPPLES: EBEN ELIASON, MAY, 2003 (KINETIC-THOUGHT)
//Edited by pom

size = 210 //the size of the "pool" (multiples of 15)
amplitude = 40 //initial wavefront amplitude (0-100)
viscocity = .1 //determines how "thick" the fluid is (0-1)
elasticity = .5 //essentially determines freq of ripples (0-2)

//sets a time for each drop indicating when the wavefront from click will reach it
onMouseDown = function(){
        for(i = 1; i <= k; i++) with(_root["Drop"+i]){
                distance = ((dx = _x - _root._xmouse)*dx + (dy = _y - _root._ymouse)*dy)/10;
                ripples.push(getTimer() + distance);}}
for(i = 0; i < size; i+=15) for(j = 0; j < size; j+=15){
        Drop = this.createEmptyMovieClip("Drop"+(++k), k);
        Drop.lineStyle(30,0x002255,100);
        Drop.lineTo(.15,.45);
        Drop._x = Stage.width/2-size/2 + j;
        Drop._y = Stage.height/2-size/2 + i;
        Drop.ripples = new Array();
        Drop.col = new Color (Drop);
        Drop.onEnterFrame = function(){
                for(i = 0; i < this.ripples.length; i++){
                        if(getTimer() > this.ripples*){
                                this.ripples.splice(i, 1);
                                this._xscale -= amplitude;
                                this._yscale -= amplitude;}}
                this.Az = (100 - this._xscale)*(elasticity)
                this.Vz = (this.Vz + this.Az)*(1-viscocity)
                this._xscale = this._yscale += this.Vz
                dif = 100 - this._xscale
                var difO = {aa:50,rb:0,gb:0,bb:this.vc=100+1.5*dif};
                this.col.setTransform(difO);}}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 1:10pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/12 "2003-06-05T13:10:21Z")

</div>

can you provide a link to the actual page or fla? i’d like to see how efficient his is, cause mine’s not and it’s killing me. also, do you mind testing this to see how slow it might run?

[http://filebox.vt.edu/users/mdimatul/swf/ripples.html](http://filebox.vt.edu/users/mdimatul/swf/ripples.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 4:05pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/13 "2003-06-05T16:05:05Z")

</div>

Can’t do, it seems that my host has had a heart-attack. And I’m on a P200 right now, so… :hangover:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 4:28pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/14 "2003-06-05T16:28:18Z")

</div>

WOAH THAT’S AWESOME ILYAS!!! (even if you didn’t create it, thanks for sharing it).

Thor: It is 100% AS, it uses the drawing API so you don’t really need a .fla, just copy and paste the code to a frame in a new document and your set. It runs super smooth on my comp.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 5:10pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/15 "2003-06-05T17:10:21Z")

</div>

the code doesn’t seem complete though…

[edit]  
nevermind, didn’t see the closing curly brackets at the end 😛  
[/edit]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 6, 2003, 7:46am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/16 "2003-06-06T07:46:16Z")

</div>

Lost \>\> Thanks 😛 I’ll tell him (although he re-edited my code and I don’t like the outcome so much :evil: )

T \>\> Is it me or you’re really changing name, subtitle, location, # of posts, style every day? And how in the world did you get this effect in your subtitle??

So many questions…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 6, 2003, 7:53am UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/17 "2003-06-06T07:53:32Z")

</div>

Ilyas: 🙂

Also… yeah thor changes his name, subtitle, location and style all the time, he’s crazy!!! 🙂

You can do that all from the mod panel. Go to the mod panel, search for your name, choose edit user, and you will now be able to change your name (changes for login as well), and use HTML code in your title and location area. You can even embed a .swf file in your title area like dan did 😛 It works with pretty much anything, images, titles, text stuff, it rocks.

You will have to be sure to check the “force title” option before changing it in the panel before the HTML code will be accepted.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 6, 2003, 1:39pm UTC](https://forum.kirupa.com/t/another-kirupalab-submission/22214/18 "2003-06-06T13:39:24Z")

</div>

yeah, i like to see what fits me the best so i try everything. i think i like this name for now, so i’ll probably stick with it for some time. and that effect in my title is simply a flash movie, à la dan.
