Graphics Primitives

December 8, 2010

Silver Smalltalk Graphics Test

Silver Smalltalk Graphics Test

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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: