December 8, 2010
This a small graphics test. You can just paste the code below into the workspace and click “Do It”; the colored windows should appear immediately.
W1 := TestWindow open red x: 20 y: 20. W2 := TestWindow open green x: 50 y: 50. W3 := TestWindow open blue x: 80 y: 80.
Once the windows have opened, you can interactively change their colors by sending them messages, for example: “W1 green”.
The Smalltalk source code for the graphics is in the “Smalltalk Code” section at the right of this blog.