Playing with Objects in the Playground
Okay, let's be honest. The previous chapters have been a little dry and it's about time we had some fun. I'd like to introduce you now to a sample application for Dolphin called Playground, which we can use to consolidate some of the ideas you've learned so far. A Playground is a window to which you can add visible shape objects and then communicate with them by sending messages from a workspace. It looks like this:
You can send messages to perform operations on the shapes, causing them to move, rotate, grow and change colour. As each operation is executed, the Playground window updates as necessary to show the new state of its shapes. You can also send messages to query and display information about the shapes and their current states. A typical dialogue in a workspace might appear as follows:
Now open another new workspace to use for the examples in this chapter..