A silly little thing I decided to make a little bit ago. It opens a box that just cycles through the colors of the rainbow, I don't really have a purpose besides looking pretty :D
If it is going too fast (which I didn't have a problem with it going super-fast), you can change the timer to a -m timer with the appropriate delay.
Open it using /rainbowtrip.
alias rainbowtrip {
window -dp @Rainbow -1 -1 640 480
set %rain.r 255
set %rain.g 0
set %rain.b 0
set %rain.set 1
set %rain.instance 0
drawrect -fr @Rainbow $rgb(%rain.r,%rain.g,%rain.b) 1 1 1 640 480
.timerrainbow 0 0 rainbowupdate
}
alias rainbowupdate {
inc %rain.instance
if (%rain.set = 1) inc %rain.g
elseif (%rain.set = 2) dec %rain.r
elseif (%rain.set = 3) inc %rain.b
elseif (%rain.set = 4) dec %rain.g
elseif (%rain.set = 5) inc %rain.r
elseif (%rain.set = 6) dec %rain.b
if (%rain.instance = 255) {
set %rain.instance 0
inc %rain.set
if (%rain.set > 6) set %rain.set 1
}
drawrect -fr @Rainbow $rgb(%rain.r,%rain.g,%rain.b) 1 1 1 640 480
}
on *:CLOSE:@: {
if ($target == @Rainbow) {
.timerrainbow off
unset %rain.*
}
}