Tunnel

By BlueThen on Feb 16, 2009

I know, a tunnel script isn't very unique. But I've been way overdue for another script.

Image

;Tunnel
;Made on February 16, 2009
;To install, paste this snippet into your remotes (alt + r)
;Then type /tunnel or right click the channel or status and click "Tunnel"
;www.bluethen.com
alias tunnel {
  !window -paozCdk0 +fbnL @Tunnel -1 -1 200 200 | !window -paohCzdk0 +ndL @tun.buf -1 -1 800 800
  !set %tun.a 0 | !set %tun.a2 0 | !set %tun.y 0 | !set %tun.m 1 | !set %tun.c 1 | !set %tun.d inc
  tun.frame
}
alias -l tun.frame {
  if ($window(@tunnel)) {
    %tun.d %tun.c 5 | if (%tun.c > 240) !set %tun.d dec 
    if (%tun.c < 10) set %tun.d inc | !clear @tun.buf
    !drawfill -r @tun.buf $str($rgb($calc(%tun.c /3), $calc(%tun.c /2), %tun.c) $+ $chr(32), 2) 1 1
    !dec %tun.a $calc($cos(%tun.a2).deg * 10) | !inc %tun.a2 $calc($cos(%tun.a).deg * 10) | !inc %tun.y
    !hadd -m s %tun.y 1 | !hadd -m x %tun.y $calc((400 + (100 * $cos(%tun.a2).deg)) + (200 * $cos(%tun.a).deg))
    !hadd -m y %tun.y $calc((400 + (100 * $sin(%tun.a2).deg)) + (200 * $sin(%tun.a).deg)) | !var %tun.x %tun.m
    while (%tun.x <= %tun.y) {
      !if ($hget(s,%tun.x) > 850) set %tun.m %tun.x
      tun.rec $hget(x, %tun.x) $hget(y, %tun.x) %tun.a $hget(s, %tun.x) | !hinc -m s %tun.x 30 | !inc %tun.x
    }
    !drawtext -o @tun.buf 0 Georgia 70 40 $calc(600+ (30 * $cos($calc(%tun.c * 1.4)).deg)) www.bluethen.com
    !drawcopy -m @tun.buf 0 0 800 800 @tunnel 0 0 200 200 | !.timer -mo 1 0 tun.frame
  }
  else unset %tun.* 
}
on *:close:@tunnel: window -c @tun.buf
alias -l tun.rec {
  !var %tun.rec.x $1 , %tun.rec.y = $2 , %tun.rec.a = $3 , %tun.rec.s = $4 , %tun.rec.z = 4
  while (%tun.rec.z) {
    !drawline -r @tun.buf $rgb($calc(%tun.rec.y * 0.318), $calc(%tun.rec.x * 0.318), $calc((%tun.rec.y + %tun.rec.x) * 0.159)) $calc(%tun.rec.s * 0.02) $calc(%tun.rec.x + (%tun.rec.s * $cos($calc((%tun.rec.z * 90) + (%tun.rec.a /2))).deg)) $calc(%tun.rec.y + (%tun.rec.s * $sin($calc(%tun.rec.z * 90 + (%tun.rec.a /2))).deg)) $calc(%tun.rec.x + (%tun.rec.s * $cos($calc((%tun.rec.z * 90)+90 + (%tun.rec.a /2))).deg)) $calc(%tun.rec.y + (%tun.rec.s * $sin($calc((%tun.rec.z * 90)+90 + (%tun.rec.a /2))).deg))
    !dec %tun.rec.z
  }
}
menu channel,status {
  Tunnel: tunnel
}

Comments

Sign in to comment.
Hawkee   -  Feb 28, 2009

Not bad, kinda has a retro effect. The window is a bit small though.

 Respond  
SumWon   -  Feb 20, 2009

As always, great picwin script BlueThen!

 Respond  
Eugenio   -  Feb 17, 2009

Interesting and rather clever =/
/me rates 6

 Respond  
BlueThen   -  Feb 17, 2009

I'm glad you understood!

 Respond  
Kirby   -  Feb 16, 2009

I read your first tutorial regarding the animations.
You explained it very nicely and it was easy for me to understand.
Now I get the idea of animations using picture windows. :-)
/me rates 9.0
thanks.

 Respond  
BlueThen   -  Feb 16, 2009

Thanks. :)

 Respond  
Aucun50   -  Feb 16, 2009

As always you never seese to amaze me 10/10

 Respond  
Kirbeh_Pr0nz   -  Feb 16, 2009

i got dizzy >_<''
9/10 ^^;

 Respond  
Kirby   -  Feb 16, 2009

I can't even good rectangles on paper :( Lol. :P

 Respond  
Aucun50   -  Feb 16, 2009

I, on the otherhand, don't even know how to draw rectangles on a picture window. xD
I can't even good rectangles on paper :(

 Respond  
Kirby   -  Feb 16, 2009

Sounds great.
I'll start after I finish my current project. :-)

 Respond  
BlueThen   -  Feb 16, 2009

You should try learning. I've posted a few tutorials on here in the forums, all of my tutorials, however, are @ www.bluethen.com

 Respond  
Kirby   -  Feb 16, 2009

That's spring break. :P
You have plenty of time on breaks and weekends.

It's quite amazing how you make these picwins.
I, on the otherhand, don't even know how to draw rectangles on a picture window. xD
/me sucks :F

 Respond  
BlueThen   -  Feb 16, 2009

You sound like your snippets have a specific due date or deadline of some sort. o_O
Well, last spring break, I was uploading scripts literally everyday. But now it's toned down to maybe once or twice a month. Which I feel is sad. :(

 Respond  
Kirby   -  Feb 16, 2009

Nice picwin BlueThen.

I know, a tunnel script isn't very unique. But I've been way overdue for another script. You sound like your snippets have a specific due date or deadline of some sort. o_O

 Respond  
Prelude   -  Feb 16, 2009

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.