Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Flashing different colors in text letters' topicStudent Support Forum > General > "Flashing different colors in text letters"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Xavier
12/30/08 09:04am

Hey,

For instance, the following should work:

Text[Dynamic[
Refresh[Row[
Map[Style[#, 72, Hue[Random[]], FontFamily -> "Frosty"] &,
Characters["*** ~Happy Birthday!~ ***"]]],
UpdateInterval -> 0.2]], Background -> Lighter[LightYellow, .1]]

Note that it's basically a work letter by letter that is then wrapped in the Text[ ..., Background -> ...]. I did so because setting a background for each letter would lead to a non-uniform background size around letters: a "H" is bigger than a "*" and setting each of them a background color would lead to different sizes of colored surfaces ... if that makes sense.

I hope it helps.
Cheers,

Xavier

URL: http://xroudaut.free.fr,

Subject (listing for 'Flashing different colors in text letters')
Author Date Posted
Flashing different colors in text letters Bill 12/29/08 8:30pm
Re: Flashing different colors in text letters Xavier 12/30/08 09:04am
Re: Flashing different colors in text letters Bill 12/31/08 01:33am
Re: Flashing different colors in text letters yehuda ben-s... 12/31/08 04:00am
Re: Flashing different colors in text letters Bill 12/31/08 2:14pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic