The Smalltalk Programming Language

Turtle Graphics Example Program


Click below to go directly to a specific section:
Description | Source Code | Sample Run | Program Notes

Description

This program demonstrates the ease of graphics done in the Smalltalk language.

Source Code

   Window turtleWindow: 'Turtle Graphics'.
      Turtle
          defaultNib: 2;
          foreColor: ClrDarkgray;
          home;
          go: 100;
          turn: 120;
          go: 100;
          turn: 120;
          go: 100;
          turn: 120


Sample Run


Program Notes

This program was created using Smalltalk Express for Windows.
[Back] [Home]

Last modified: 03:37 PM on 11/09/1996