为了纪念《星球大战》纪念日,编写一个程序来显示以下文本,滚动起来就像《星球大战》的开始抓取:
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...
您可以输出动画GIF或让您的程序显示它。输出必须显示以下内容:
- 文本必须从图像/显示屏的底部开始
- 它必须向上滚动直到到达顶部。
30
一条文本到达顶部至少要花费几秒钟。动画必须继续直到所有文本到达顶部。 - 在此距离内,文本必须变小,直到小于
1/3
大小(长度和字体)为止 - 文本必须倾斜以符合此角度。
- 文本必须左右对齐。给定的文本已经为等宽字体辩解,但是,您可以删除多余的空格(而不是换行符)并自己进行辩解。
- 文字必须为黄色
- 背景必须为黑色
该视频显示了开始爬网。
祝你好运,愿第四次与您同在!