MSWLogo

Programming language From Wikipedia, the free encyclopedia

MSWLogo

MSWLogo is a programming language which is interpreted, based on the computer language Logo, with a graphical user interface (GUI) front end. George Mills developed it at the Massachusetts Institute of Technology (MIT). Its core is the same as UCBLogo by Brian Harvey. It is free and open-source software, with source code available, in Borland C++.

Thumb
MSW Logo windows

MSWLogo supports multiple turtle graphics, 3D computer graphics, and allows input from ports COM and LPT. It also supports a Windows interface, so input/output (I/O) is available through this GUI, and keyboard and mouse events can trigger interrupts. Simple GIF animations may also be produced on MSWLogo version 6.5 with the command gifsave. The program is also used as educational software. Jim Muller wrote The Great Logo Adventure, a complete Logo manual using MSWLogo as the demonstration language.

MSWLogo has evolved into FMSLogo: An Educational Programming Environment, a free, open-source implementation of the language Logo for Microsoft Windows. It is released under the GNU General Public License (GPL) and is mainly developed and maintained by David Costanzo.

Features

Summarize
Perspective
Animated gif with turtles in MSWLogo (Lemniscate of Bernoulli)[1]
Animated gif with turtle in MSWLogo (Limaçon)

MSWLogo, as of version 6.5b, supports many functions, including:[2]

  • TCP/IP Winsock networking
  • Win16, Win32, Win32s
  • Text in all available fonts and sizes.
  • 1024 independent turtles.
  • Bitmapped turtles
  • Bitmap cut, paste, stretch
  • Clipboard text and bitmaps
  • MIDI devices
  • Direct I/O to control external hardware
  • Serial and parallel port communications
  • Zooming
  • Tail recursion: optimizes most recursive functions
  • User error handling
  • Standard Logo parsing
  • Save and restore images. BMP format files
  • Color bits per pixel: 1, 4, 8, 16, 24
  • Standard Windows hypertext help
  • Standard Windows printing
  • Separate library and work area
  • Construction of Windows dialogue boxes
  • Event-driven programming: mouse, keyboard, timer
  • Multimedia devices: WAV sound files, CD-ROM control, etc.
  • Event timers allowing multiprocessing
  • 3D perspective drawing: wire-frame and solid
  • Animated GIF generation
More information Command, Abbr. ...
CommandAbbr.SyntaxOutputExample
FORWARDfdFORWARDnumber of steps to move forwardMoves turtle forward for number of times specifiedforward 100 or fd 100
BACKbkBACKnumber of steps to move backwardMoves turtle back for number of times specifiedback 100 or bk 100
RIGHTrtRIGHTdegrees to rotate toward rightTurns turtle right for number of degrees specifiedright 228 or rt 228
LEFTltLEFTdegrees to rotate toward leftTurns turtle left for number of degrees specifiedleft 228 or lt 228
HOMEhomeComes to screen center but does not clear the screenhome
CLEANct csClears the screen of trails but the turtle remains where it is without movingclean
CLEARSCREENCSClears the screen of trails and comes to screen centercs
HIDETURTLEHTHides the turtle and aids viewing a clear drawing on the screenht
SHOWTURTLESTShows the turtle after it is hidden from the screenst
PENUPPUSets the turtle to move without drawingpu
PENDOWNPDResets to a drawing pen when ordered to movepd
CLEARTEXTCTClears all text in the command screenct
CIRCLEMakes a circle
repeat 360 [FD desired length in number of pixels divided by 360 RT or LT 1]
circle
PatternpayMakes a patternpattern
SetPCSetPCRGB value here (ex. 255, 255, 255)Sets the pen color to that rgb valuesetpc [255 255 255]
SetSCSetSCRGB value here (ex. 255, 255, 255)Sets the screen color to that rgb valuesetsc [255 255 255]
Close

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.