24
6
In honor of Star Wars day, write a program to display the following text, scrolling like the Star Wars opening crawl:
It is a period of civil war. Rebel
spaceships, striking from a hidden
base, have won their first victory
against the evil Galactic Empire.
During the battle, Rebel spies managed
to steal secret plans to the Empire's
ultimate weapon, the Death Star, an
armored space station with enough
power to destroy an entire planet.
Pursued by the Empire's sinister agents,
Princess Leia races home aboard her
starship, custodian of the stolen plans
that can save her people and restore
freedom to the galaxy...
You may output an animated GIF or have your program display it. The output must show the following:
- The text must start from the bottom of the image/display
- It must scroll upwards until it reaches the top. It must take at least
30
seconds for a piece of text to reach the top. The animation must continue until all the text reaches the top. - In this distance, the text must get smaller until it is less than
1/3
the size (length and font) - The text must be slanted to follow this angle.
- The text must be left and right justified. The text given is already justified for monospaced fonts, however, you may remove the extra spaces (not newlines) and justify it yourself.
- The text must be yellow
- The background must be black
This video shows the opening crawl.
Good luck, and May the fourth be with you!
5What about "May the forth be with you"? – TheDoctor – 2014-05-04T22:38:28.427
@TheDoctor That's what it was, but I fixed the typo. You seriously think that I should go for the double pun? – Justin – 2014-05-04T22:40:21.923
3Forth would be difficult to do this in. – TheDoctor – 2014-05-04T22:42:53.307
4@TheDoctor "To do in Forth, difficult this would be" - Yoda'd that for you. – MikeTheLiar – 2014-05-05T13:44:34.207
One fun thing about this question: before posting, the system warned me that this might be closed as "too subjective". – Justin – 2014-05-05T18:20:07.703
Since there is an abundance of HTML answers, what about bonus points for those with HTML soltuions that also work in browsers other than webkit based ones? – rooby – 2014-05-06T11:59:26.160
@rooby That can be handled via votes and bounties. – Justin – 2014-05-08T08:09:28.700
@Quincunx: I meant for you selecting the winner, not extra stack exchange points. – rooby – 2014-05-08T08:57:30.000