Rainbow generator

By sercan386 on Feb 12, 2009

Usage: type /rainbow, then click anywhere in the picwin.

;BOF
alias -l drawrainbow {
  set %r 255
  set %g 15
  set %b 15
  set %y 0
  while %y != 2884 {
    inc %y
    if ( %r == 255 ) set %rfull 1
    if ( %g == 255 ) set %gfull 1
    if ( %b == 255 ) set %bfull 1
    if ( %r == 15 ) set %rfull 0
    if ( %g == 15 ) set %gfull 0
    if ( %b == 15 ) set %bfull 0
    if ( %rfull == 1 ) && (%gfull == 0 ) && (%bfull == 0) {
      inc %g 2
    }
    if ( %rfull == 1 ) && (%gfull == 1 ) && ( %bfull == 0) { 
      dec %r 2
    }
    if ( %gfull == 1 ) && (%bfull == 0 ) && (%rfull == 0) {
      inc %b 2
    }
    if ( %gfull == 1 ) && (%bfull == 1) && ( %rfull == 0) {
      dec %g 2
    }
    if ( %bfull == 1 ) && (%rfull == 0 ) && (%gfull == 0) {
      inc %r 2
    }
    if ( %bfull == 1 ) && (%rfull == 1 ) && ( %gfull == 0) {
      dec %b 2
    }
    drawline -r @rain $rgb(%r,%g,%b) 1 $calc(%y + $1) $calc(1 + $2) $calc(%y + $1) 3000 
  }
}
alias rainbow {
  window -paxdk0 @rain
}
menu @rain {
  sclick: drawrainbow $calc($mouse.x -1500) $calc($mouse.y -1500)
}
;EOF

Comments

Sign in to comment.
sercan386   -  Dec 21, 2010

Nope! It's completely useless indeed.

 Respond  
zaiger   -  Sep 05, 2010

I'm totally missing the point of this script. Does it do anything other than block you from typing anything with a big rainbow?

 Respond  
napa182   -  Feb 13, 2009

yawns

 Respond  
burford   -  Feb 13, 2009

napa ur such a twit

 Respond  
napa182   -  Feb 13, 2009

burford said:

Napa do you have something against gays?

did i say i did? i dont give a hell what people do with their life.

 Respond  
Jonesy44   -  Feb 13, 2009

Quite nice :D 6/10

 Respond  
burford   -  Feb 13, 2009

Napa do you have something against gays?

 Respond  
irchainscriptz   -  Feb 12, 2009

Omg napa Lmfao

 Respond  
napa182   -  Feb 12, 2009

looks like a huge gay pride flag.

 Respond  
Aucun50   -  Feb 12, 2009

Like the idea works good to plus its FAST!

 Respond  
sercan386   -  Feb 12, 2009

Bet nobody has done this before ;)
Please rate&comment&use in your future picwins. If you do so, credit me XD

 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.