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!