text colour changer

By FRISH on May 26, 2007

Very simple idea. This either changes the text colour , or the text and background colour of your text.

Just load this into your ALIASES section (Alt+r).

type "/clr text" to change the colour of the text randomly
or
type "/clr2 text" to change the colour of the text and background colour randomly

note that /clr may show some text the same colour as you background so will only be visible if you highlight it.

I thought i might aswell update this code to only a few lines long.
This doesnt do numbers though.

clr {
  var %nintext $len($1-) + 1, %clr1 1
  while (%clr1 < %nintext) { if ($mid($1-,%clr1,1) != $chr(32)) { var %msgclr %msgclr $+ $replace($mid($1-,%clr1,1),$mid($1-,%clr1,1),$+(,$r(0,15),$mid($1-,%clr1,1))) } | else var %msgclr %msgclr $chr(32) | inc %clr1 }
  say %msgclr
}

clr2 {
  var %nintext $len($1-) + 1, %clr1 1
  while (%clr1 < %nintext) { if ($mid($1-,%clr1,1) != $chr(32)) { var %msgclr %msgclr $+ $replace($mid($1-,%clr1,1),$mid($1-,%clr1,1),$+(,$r(0,15),$chr(44),$r(0,15),$mid($1-,%clr1,1))) } | else var %msgclr %msgclr $chr(32) | inc %clr1 }
  say %msgclr
}

Comments

Sign in to comment.
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.