Did you know that animated movies like Toy Story, Up, and Frozen are made using computer programs? In this assignment you are going to use a program to create a short film.

Display Message Method

Every movie has a beginning and an end. Sometimes it will start "Once Upon a Time...", sometimes it will start with a title, sometimes it will start with something sillier. At the end of the movie it sometimes says "The end."

Add a method to your program that will draw a message on the screen (on a black background) and leave the message for two seconds.

private void displayMessage(String message)
After two seconds you should remove the GRect that is the background and the GLabel that is the text. To do so you can use the remove method (it does the opposite of the add method. It takes a GObject that was on the canvas and removes it).
The start message should look like the screen on the left. The end message should look like the screen on the right:
The font that we used was:
Of course you can reuse this method as much as you want to tell your story!

Setting Sun

Your movie must have one scene to start: A setting sun. draw the sky, the earth and a sun. Then, slowly animate the sun descending. The sky should take up the top half of the canvas, and the earth should take up the second half. Considering the following images from the start of the program, and the program after a few seconds.

Get Color Method

Write a method that takes in the time, and returns the color of the sun.

private Color getColor(int frame)

Have the method return Color.YELLOW, Color.ORANGE or Color.RED based on how many iterations have passed.

Make it Better

Do anything you want to make your story more captivating than just a setting sun. Can you tell a tale of love or action? Don't forget to use methods to make your life easier.

You can also add more objects to make your scene more captivating. Add a rainbow (or a double rainbow)? Do you have an idea about what sunsets have always been missing? How about a lit up Bosphorus bridge?