StringArt in MSWLogo Version 3
I've cleaned up the code; added comments and added a new tool.
See below.
This is a screen capture of StringArt in MWSLogo. The core of the program is the same as the version in MicroWorlds. I've added a few features and left a few things off.
Features
- Angle, length of legs and leg divisions set via sliders.
- Draw single design elements or complex designs based on squares and hexagons.
- Save images as bitmap of gif files.
- Load bitmap or gif files.
- Set active area via mouse.
- Full logo control via commander.
Changes in Version 2
-
There was a bug in the file save/restore code. Even if bitmap file format was selected the file type was gif.
-
I've added a feature that allows the leg2 slider to track the leg1 slider. When this is turned on it makes it easier to make both legs the same length.
-
Renamed the 'Hexagon' tool window 'Polygons' and added two sliders, "Rotation Angle' and 'Loop' and two check boxes.
-
The rotation angle slider controls the amount of rotation between the individual elements.
-
The rotation check box causes the element angle slider to track the rotation angle slider.
-
The loop slider controls the number of times the element is drawn.
-
The loop check box determines how the rotation is determined. If it IS NOT checked the rotaion angle slider sets the rotation. If it IS checked then the loop slider also determines the rotation using 360 / loop.
-
Added get routines for the sliders. This makes it easier to use the slider values in your own Logo code.
- getLength1
- getLength2
- getAngle
- getDivision
- getS2 - Thats the rotation slider in poloygon tool window.
- getS3 - Thats the loop slider in the polygon window.
Changes in Version 3
-
Cleaned up the code and added comments.
-
Added a new tool, 'Lines'. With this tool lines are drawn with the mouse and the area between
the lines is filled using strings.
If you download the project please take a moment to let me know.
stringart.zip MSWLogo file. 7KB compressed.