Text Effects Example

Warning: If you're prone to epileptic seizures, please do NOT use this program or any programs which may include these functions.

Imagine a world where Petit Computer had rainbow text. Now stop imagining, because you're living in it! Append the rainbow functions to your programs and watch them go from boring to extraordinary! See the colors flow from the screen directly into your eyeballs, and be amazed! It's like nothing you've ever experienced before... and it's something you'll never forget. Be filled with amazement as you experience:
 * Rainbow text (color 15)
 * Party text (color 14)
 * Flashing text (color 13)
 * Crazy text (color 12)

Can you handle the sheer amount of awesomeness? Probably not, but that shouldn't stop you from trying! Download this (example) program and get partying!

...OK seriously, this program shows you how to perform text color manipulations to produce real-time effects like rainbow "wheel" and flashing text. This program will utilize the last color in the SP (sprite) color palettes 12, 13, 14, and 15. That shouldn't be that big of a deal, but if you're not careful, you might find that your sprites suddenly exhibit rainbow/flashing qualities too.

The program has an initialization function, @RAINBOWINIT, which you should call at the beginning of your program ONCE. It has another function called @RAINBOW which you should call in ANY loop in which text is visible and a VSYNC 1 command is called. Now you can simply print text in color 12-15 using the COLOR command to get your special text effects! Just like any old COLOR command, you can mix and match colors/effects to do whatever you want.

If you're not sure what the heck is going on, just run the program and see what happens. Once you've seen the... colors, look at the example portion of the code (the beginning) to see what I'm doing. I'm basically just calling COLOR 15, then printing out some text, then calling COLOR 14, 13, 12, etc., each while printing text. Finally, I enter a loop, which you can think of as your "game loop". Here, I call the @RAINBOW function, which is what produces the effects.

Feel free to use this in any of your programs. You don't even have to give me credit, although it would be nice if you did