Compass Widget |
|||||
|
|
This page contains a compass widget parcel for VisualWorks 5i Smalltalk. You can get a non-commercial version of VisualWorks 5i from the above URL. The compass widget is made available under the terms of the GNU LGPL. Download
InstallationEither copy the .pcl and .pst files to the parcels subdirectory of your VisualWorks installation directory or keep them locally; the search path for parcels usually includes the current working directory. Load the compass widget into an image using the menu option. The CoolImage parcel will also be loaded. Usage
The compass widget models the direction in radians, with East being 0 radians and the value increasing in the clockwise direction. This convention is arguably wrong -- North is conventionally 0 and degrees or mills are usually used -- but is convenient from a programmer's point of view. |
15-Feb-2003 Doug Palmer