https://github.com/ruda/logolib
LOGO Library for PostScript.
https://github.com/ruda/logolib
Last synced: 2 months ago
JSON representation
LOGO Library for PostScript.
- Host: GitHub
- URL: https://github.com/ruda/logolib
- Owner: ruda
- License: other
- Created: 2018-07-03T20:08:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T20:09:20.000Z (almost 7 years ago)
- Last Synced: 2024-12-31T04:41:50.955Z (4 months ago)
- Language: PostScript
- Size: 589 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
LOGO Library
Rudá MouraINTRODUCTION
LOGO Library is a PostScript library to describe graphics with
commands derived from the LOGO language, more specifically,
you can use this library to draw with a subset of the “turtle” LOGO commands.LOGO Library is in Public Domain.
FILES
The LOGO Library is all included in ‘LOGOLib.ps’ file. All other
PostScript files (*.ps) are examples that maybe teach you
something about the library.USAGE
PostScript (PS) is largely available in many platforms and printers.
On macOS, the Preview Application is able to convert the PostScript file
to the PDF format. On the command line, use ‘pstopdf’ to convert to PDF.On Linux and Windows is recommended to install GhostScript and GhostView.
GhostScript is the PostScript interpreter and GhostView is the viewer application.Now this is how you use the library (LOGOLib.ps):
Create a PostScript file and include the LOGO Library content. Use the LOGO-like commands to draw and finally use ‘showpage’ when it is done.
Here is how to draw a Square with size 50 points in the middle of the page.
%%% Copy the LOGO Library here! %%%
50 forward
90 right
50 forward
90 right
50 forward
90 right
50 forward
90 rightshowpage
REFERENCES
* GhostScript and GhostView. https://www.ghostscript.com/
* PostScript Tutorial by Paul Bourke. http://paulbourke.net/dataformats/postscript/
* Logo Foundation: Logo Programming. http://el.media.mit.edu/logo-foundation/what_is_logo/logo_programming.html
* Berkeley Logo User Manual. https://people.eecs.berkeley.edu/~bh/usermanualLast updated: July 3, 2018