LibreLogo#Hello world example
{{short description|Vector graphics language}}
{{multiple issues|
{{notability|Products|date=March 2018}}
{{primary sources|date=March 2018}}
}}
{{Infobox software
| logo =
| screenshot = LibreLogo Turtle graphics.png
| caption = LibreLogo extension showing Turtle graphics
| author = László Németh
András Tímár
| developer =
| released = {{Start date and age|2012|06|27|df=yes}}{{cite web|title=LibreLogo 0.1 (Jun 27, 2012)|url=http://extensions.libreoffice.org/extensions/librelogo/0.1}}
| latest release version = Same as LibreOffice version
| latest release date =
| programming language = Python-PyUNO
| operating system = Linux, Windows
| platform =
| language = Same as LibreOffice version
| genre = Integrated development environment, software extension, part of an application
| license = GPL, LGPL v2.1, and MPL v1.1
| website = {{URL|librelogo.org}}
}}
LibreLogo is an integrated development environment (IDE) for computer programming in the programming language Python, which works like the language Logo using interactive vector turtle graphics. Its final output is a vector graphics rendition within the LibreOffice suite. It can be used for education and desktop publishing.
History
Logo toolbar and interpreter was programmed by László Németh, and help with integration was provided by András Tímár.{{cite web|title=4.0 New Features and Fixes|url=https://www.libreoffice.org/download/4-0-new-features-and-fixes/|publisher=The Document Foundation|access-date=2014-04-29|archive-url=https://web.archive.org/web/20130308195449/http://www.libreoffice.org/download/4-0-new-features-and-fixes/|archive-date=2013-03-08|url-status=dead}} It was released as an extension to LibreOffice before code was merged into LibreOffice 4.2.3.3 main code in 2014.{{cite web|title=LibreLogo|url=http://extensions.libreoffice.org/extensions/librelogo}}
The lightweight implementation (1,400 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).
Installation
LibreLogo is embedded in every version of LibreOffice after 4.2.3.3, released in 2014. It can also be installed as an extension for earlier versions.{{cite web|url=http://www.libreoffice.org/download/libreoffice-fresh/|title=LibreOffice downloads page|date=1 May 2014|access-date=1 May 2014}}
Its main UI is a toolbar in Writer ({{menu sequence|View|Toolbars|Logo}}).{{cite web|url=http://librelogo.org/quick-start/|title=Quick Start|last=Németh|first=László|date=30 April 2014|access-date=1 May 2014}}
Usage
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 Scalable Vector Graphics (SVG) format and can be copied and pasted into other documents.
The syntax of LibreLogo is similar to UCBLogo. It supports the ¨word
syntax for strings, the 'word'
notation, and importantly, recursion. Commands can be entered in the toolbar, or compiled and run from the Writer page.
=Hello world example=
Here is a "Hello, World!" program 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=
File:LibreLogo Chess board.png|Chessboard
File:LibreLogo Logo posters.jpg|Logo posters
File:LibreLogo Turtle graphics.png|Turtle graphics
See also
{{Portal|Free and open-source software|Computer programming}}
References
{{Reflist}}
;Bibliography
- [http://www.numbertext.org/logo/librelogo.pdf Berlin 2012 Libre Office Conference]
External links
{{Commons category|LibreLogo}}
- {{Official website|librelogo.org}}
- [https://help.libreoffice.org/6.2/en-US/text/swriter/librelogo/LibreLogo.html Language description on the official wiki] (en) other languages supported
- [http://librelogo.org/2014/04/03/norwegian-librelogo-tutorial/ ebook- Text book for Secondary School students] (hu) Supported by Hungarian government.
- [http://www.stuestoel.no/office/logo/en/logo-startside.php Tutorial] College level notes
{{LibreOffice}}
{{Logo programming}}
{{Lisp programming language}}
Category:Free software programmed in Python
Category:Free integrated development environments for Python
Category:Linux integrated development environments
Category:Windows integrated development environments
Category:Software using the GNU General Public License
Category:Software using the GNU Lesser General Public License