Flow 1.03

By BlueThen on Jul 05, 2008

Flow, a simple fabric like animation I made for the heck of it. :P

Image

Updates:
Small fix
Changed the background color.
Fixed the shading.
The movement is... different?

;Flow 1.03
;Made by BlueThen on July 5, 2008.
;To install, paste this snippet into your remotes (alt + r)
;and type /flow or right click the channel or status and click Flow to start.
alias flow { window -paoCzdk0 +tnbL @Flow -1 -1 400 400 | window -paohCzdk0 +tnbL @flow.buf -1 -1 800 800 | flow.init }
alias -l flow.init {
  set %flo.a 1 | set %flo.time 0 | set %flo.fps 0 | set %flo.c n
  set %flo.fcounter 0 | set %flo.fticks $ticks | .timerflo -h 0 100 inc %flo.time | flow.frame
}
alias -l flow.frame {
  if (%flo.c != y) {
    inc %flo.fcounter | set %flo.ltime $calc($ticks - %flo.oticks)
    if ($calc($ticks - %flo.fticks) > 999) { set %flo.fps %flo.fcounter | set %flo.fcounter 0 | set %flo.fticks $ticks }
    clear @flow.buf | drawfill @flow.buf 1 1 1 1 | %flo.y = 0
    while (%flo.y < 10) {
      set %flo.x 0
      while (%flo.x < 20) {
        %flo.i = $calc(((%flo.y * 20) + 500) + (10 * $sin($calc(%flo.a + (%flo.x * 10) + (%flo.y * 20))).deg))
        %flo.t = $calc(((%flo.x * 30) + 100) + (10 * $cos($calc(%flo.a + (%flo.x * 10) + (%flo.y * 20))).deg))
        %flo.s = $calc(255 - ($iif(- isin $calc(%flo.i - ((%flo.y * 20) + 500)), $calc(10- $abs($v2)), $calc($v2 + 10)) *10))
        drawdot -r @flow.buf $rgb(0,0,%flo.s) $calc(20 + (3 * %flo.y)) %flo.t %flo.i
        inc %flo.x
      }
      inc %flo.y
    }
    inc %flo.a $calc(20/10 * %flo.ltime) | drawtext @flow.buf 0 Tahoma 20 15 20 FPS: %flo.fps
    drawtext @flow.buf 12 Tahoma 30 520 20 Made by BlueThen
    drawtext @flow.buf 12 Tahoma 30 520 60 BlueThen.com
    drawcopy -m @flow.buf 0 0 800 800 @flow 0 0 400 400
    set %flo.oticks $ticks | .timer -o 1 0 flow.frame
  }
  else unset %flo.c
}
on *:close:@flow: { window -c @flow.buf | .timerflo off | unset %flo.* | set %flo.c y }
menu channel,status { 
  Flow: flow
}

Comments

Sign in to comment.
NightBlade   -  Oct 12, 2008

mhm

 Respond  
^Neptune   -  Oct 12, 2008

The animation jumps around quite a bit. Not really as good as your other ones though.

 Respond  
NightBlade   -  Oct 12, 2008

complex script, simple image

 Respond  
DaNzO   -  Jul 20, 2008

Is there a specific use for this script, lol.

Good job btw.

 Respond  
Jonesy44   -  Jul 06, 2008

Impressive .. But not your best BT.

 Respond  
BlueThen   -  Jul 05, 2008

No, it took maybe 15 to 30 minutes to make. I was talking about other times then.

 Respond  
Eugenio   -  Jul 05, 2008

a couple of mins ?!?
rofl gtfo.

but I usually run into times where I have to go through a hour or so worth of trial and error. :P
then it didnt take a few mins then did it

erm and who the bloody hell rated this 10 ?!?

 Respond  
BlueThen   -  Jul 05, 2008

Updated.
Changed the background color.
Fixed the shading.

 Respond  
SumWon   -  Jul 05, 2008

Wow, very cool! Now, make it so when you click, a ripple goes out from the mouses location :P

 Respond  
BlueThen   -  Jul 05, 2008

A couple of minutes really. :/

Most of my scripts probably wouldn\'t take that long, but I usually run into times where I have to go through a hour or so worth of trial and error. :P

I guess i was lucky this time

 Respond  
Eugenio   -  Jul 05, 2008

lawl .....how long did this take to make ?!?

 Respond  
EL   -  Jul 05, 2008

Nice BT.`-.-´

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.