LibreLogo

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
LibreLogo
LibreLogo extension showing Turtle graphics
LibreLogo extension showing Turtle graphics
Original author(s)László Németh
András Tímár
Initial release27 June 2012; 7 years ago (2012-06-27)[1]
Stable release
Same as LibreOffice version
Written inPython-PyUNO
Available inSame as LibreOffice version
TypeSoftware extension / part of an application
LicenseGPL, LGPL v2.1 and MPL v1.1
Websitelibrelogo.org

LibreLogo is a Logo-like, Python programming environment that uses interactive turtle vector graphics. Its final output is a vector graphics rendition within the LibreOffice suite; and it can be used for education and desktop publishing.

History[edit]

Logo toolbar and interpreter was programmed by László Németh, and help with integration was provided by András Tímár.[2] It was released as an extension to LibreOffice before code was merged into LibreOffice 4.2.3.3 main code in 2014.[3]

The lightweight implementation (1400 lines in Python-PyUNO) uses the embedded Python to give a simplified programming interface to the vector graphics of LibreOffice for graphic design and education (including teaching of word processing).[2]

Installation[edit]

LibreLogo is embedded in every version of LibreOffice later than 4.2.3.3 (released in 2014). It can also be installed as an extension for earlier versions.[4]

It's a toolbar in Writer (ViewToolbarsLogo).[5]

Use[edit]

Touching the up-arrow on the Logo toolbar, activates the turtle, then the source code is typed directly onto the same page. The graphic is in SVG format and can be copy & pasted into other documents.

The syntax of LibreLogo is similar to UCBLogo. It supports the ¨word syntax for strings as well as the 'word' notation. Importantly LibreLogo supports recursion. Commands can entered into the toolbar, or compiled and run from the Writer page.

Hello world example[edit]

Here is a "Hello, World!" example.

circle 10cm
fillcolor 'blue' pencolor 'red' pensize 2 circle 5cm
forward 200 right 89 circle 5
repeat 88 [ forward 200 right 89 ] fill
repeat 9 [ label 'Hello, World!' right 20 ]
repeat 100 [ penup position any pendown pensize random 10 fillcolor any square 20 + random 100 ]

Gallery[edit]

See also[edit]

References[edit]

Notes
  1. ^ "LibreLogo 0.1 (Jun 27, 2012)".
  2. ^ a b "4.0 New Features and Fixes". The Document Foundation.
  3. ^ "LibreLogo".
  4. ^ "LibreOffice downloads page". 1 May 2014. Retrieved 1 May 2014.
  5. ^ Németh, László (30 April 2014). "Quick Start". Retrieved 1 May 2014.
Bibliography

External links[edit]