Librelogo Toolbar - Libreoffice Help

Librelogo Toolbar - Libreoffice Help

LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 LibreLogo Toolbar From LibreOffice Help EN AST BG BN BN-IN CA CS DA DE EL ES EU FI FR HU IT JA KM KO NB NL OM PL PT PT-BR RU SL SV TR VI ZH-CN ZH-TW LibreLogo is a simple, localized, Logo-like programming environment with turtle vector graphics for te&ching of computing (programming and word processing), DTP a+d graphic design. See /--p455..w.numbertext.org/logo/librelogo.pdf3 Contents 7 LibreLogo -oolbar 8 Turtle moving icon% 9 Start Logo pro$ram : Home ; Clear screen < Program editor/S=+-ax hi$/lighting/Translatin$ > Command line ? Graphical user interface of basic turtle se-tin$% @ Program editi+$ 7A LibreLogo programmin$ l&+$0age 7A37 Differences from the Logo programming language 7A38 Other features of LibreLogo 77 LibreLogo commands 7737 Basic syntax 773737 Case sensitivity 773738 Program lines 773739 Comments 77373: Break program lines to multiple paragraphs 7738 Turtle movi+$ 773837 FORWARD (fd) 773838 BACK (bk) 773839 LEFT (lt) 77383: RIGHT (rt) 77383; PENUP (pu) 77383< PENDOWN (pd) 77383> POSITION (pos) 1 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 77383? HEADING (seth) 7739 Other turtle commands 773937 HIDETURTLE (ht) 773938 SHOWTURTLE (st) 773939 HOME 77393: CLEARSCREEN (cs) 77393; FILL and CLOSE 773: Pen settings 773:37 PENSIZE (ps) 773:38 PENCOLOR5 ENCOLOUR (pc) 773:39 PENTRANSPARENCD 773:3: PENCAP/LINECAP 773:3; PENJOINT/LINEJOINT 773:3< PENSTYLE 773; Fill settings 773;37 FILLCOLOR/FILLCOLOUR (fc) 773;38 FILLTRANS ARENCY 773;39 FILLSTYLE 773< Drawing objects 773<37 CIRCLE 773<38 ELLIPSE 773<39 SQUARE 773<3: RECTANGLE 773<3; POINT 773<3< LABEL 773<3> TEXT 773> Font settings 773>37 FONTCOLOR/FONTCOLOUR 773>38 FONTFAMILY 773>39 FONTSIZE 773>3: FONTWEIGHT 773>3; FONTSTYLE 773? PICTURE (pic) 773?37 Shape grouping 773?38 Startin$ new line shapes 773?39 Saving SVG images 773?3: Saving SVG5SMIL anim&tions (drawings with SLEEP commands) 773?3; Consistency at -he left border 773@ Loops 773@37 REPEAT 773@38 REPCOUNT 773@39 FOR IN 2 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 773@3: WHILE 773@3; BREAK 773@3< CONTINUE 7737A Conditions 7737A37 IF 7737A38 AND, OR, NOT 77377 Subroutines 7737737 TO, END 7737738 OUTPUT 7737739 STOP 77378 Def&0lt vari&bles 7737837 ANY 7737838 TRUE 7737839 FALSE 773783: PAGESIZE 773783; PI/π 77379 Input/Output 7737937 PRINT 7737938 INPUT 7737: SLEEP 7737; GLOBAL 7737< Functions 7737<37 RANDOM 7737<38 INT 7737<39 FLOAT 7737<3: STR 7737<3; SQRT 7737<3< SIN 7737<3> COS 7737<3? LOG10 7737<3@ ROUND 7737<37A ABS 7737<377 COUNT 7737<378 SET 7737<379 RANGE 7737<37: LIST 7737<37; TUPLE 7737<37< SORTED 7737<37> SUB 7737<37? SEARCH 7737<37@ FINDALL 7737<38A MIN 7737<387 MAX 3 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 7737> Color consta+-% LibreLogo toolbar The LibreLogo toolbar (View » Toolbars » Logo) con-ains turtle moving, program %-&rt, stop, home, clear screen, program editor/synta6 highlighting/-ra+slating icon% and an input bar (comm&+d line23 Turtle moving icons They are equivalents of the Logo commands “FORWARD 10”, “BACK 10”, “LEFT 7;”, “RIGHT 7;K. Clicking on one of -he icons .ill also focus the -urtle shape scrolling the page to i-s position. Start Logo program Click on the icon “S-art Logo program” -o execute -he text (or only t/e selected) text of the Writer document as a LibreLogo program. In an empty documen- &+ example program will be inserted a+d executed. Click on the icon “S-op” to stop the program execution3 Home Click on the icon “Home” to reset the position &+d settings of the turtle. Clear screen Click on the icon “Clear screen” to remove -he drawing objects of -he document. Program editor/Syntax highlighting/Translating The “m&gic wand” icon sets 2-page layout for program edi-ing, expa+ds and converts to uppercase the &bbreviated, lo.ercase Logo comm&+ds in the Writer document. Change the language of the documen- (Tools » Options » L&+$0age Se-tings » La+$0&$es » Wester+) and click on this icon to translate the Logo program to the selected la+$0&$e3 Command line 4 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 Hit En-er in the command line to exec0-e its conten-. To %-op -he program use the icon “Stop”. Hold down the Enter to repeat the comma+d line, for example, on the following command sequence: FORWARD 200 LEFT 89 To reset the comm&+) line click triple in it or press Ctrl-A to select the previou% commands, a+d type the new commands. Graphical user interface of basic turtle settings Turtle %/&pe of LibreLogo is & norm&l fixed size drawin$ object. You can positionate and rotate i- on sta+dard way, -oo, using the mouse &+d the Rotate icon of the Drawing Object Properties toolbar. Modify Line Wid-/' Line Color &+) Are& Color settings of the -urtle shape to set PENSIZE, PENCOLOR a+d FILLCOLOR attributes of LibreLogo. Program editing LibreLogo dr&.ings and programs 0se -he same Writer document. The LibreLogo ca+,as is on the first page of -he Writer document. You can insert a page break before the LibreLogo programs a+d set page zoom using the “magic w&+)” icon of the Logo toolbar, also change the fon- size for a comfortable 2-page layout for LibreLogo programmin$: left (first) page is the ca+,as, right (second) page is -he LibreLogo program editor. LibreLogo programming language LibreLogo is an easily localiz&ble, Logo-like programming language, localized in several l&+$0&ges b= LibreOffice n&tive la+$0&$e communi-ies. It is back-compatible with the older Logo systems in -he case of -he simple Logo programs used i+ education, eg. TO triangle :size REPEAT 3 [ FORWARD :size LEFT 120 ] END triangle 10 triangle 100 triangle 200 5 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 Differences from the Logo programming language List members are comm& separated4 POSITION [A, 0M Program blocks &+d li%-s &re different Program blocks need space or new line at paren-hesization: REPEAT 10 L FORWARD 10 LEFT 36 ] Lists need close parenthesi(&-ion: POSITION [0, 0], and not POSITION L 0, 0 ] 1-line function declarations &re no- supported (TO &+d END need new line%23 Other features of LibreLogo The colon is optional before t/e variable +&mes. TO triangle size REPEAT 3 [ FORWARD size LEFT 120 ] END String notation supports also orthographical and Python synta63 PRINT ".ord ; original Logo syntax PRINT “Arbitrary -ex-3” ; orthography, Writer PRINT 'Arbi-rary text.' ; =-/on synta6 =thon li%- and string ha+dli+$ PRINT “text”[2] ; print “xK PRINT “text”[1:3] ; print “e6K =thon-like FOR loop =thon-like ,ari&ble declaration: x = 15 PRINT x There are no ex-ra query fu+ctio+%4 PRINT FILLCOLOR p = POSITION PRINT p REPEAT 10 [ POSITION ANY POSITION p M Alter+&tive parenthesiz&tion in function calls TO star size color FILLCOLOR color REPEAT 5 [ LEFT 72 FORWARD size RIGHT 144 FORWARD size ] FILL END %-&r 100 “redK %-&r (1AA, “green”2 6 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 %-&r(1AA' “blue”) LibreLogo commands Basic syntax Case sensitivity Commands, color consta+-s &re case insensitive: PRINT “Hello, World!” print “Hello, World, again!” Vari&ble n&mes are case sensitive: a = 5 A = 7 PRINT a PRINT A Program lines Lines of & LibreLogo program are paragraphs in -he LibreOffice Writer document. A program line can con-&in multiple commands: PRINT “Hello, World!” PRINT “LibreLogo” Comments Lines or line parts are comments from & semicolon to the end of the line (paragraph): ; some comments PRINT 5 * 5 ; some comments Break program lines to multiple paragraphs It’s possible to break a program line for more paragraphs using the character tilde at the end of the line: PRINT “This is a very long ” + ~ “warning message” 7 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 Turtle moving FORWARD (fd) FORWARD 10 ; move forward 10pt (1pt = 1/72 inch) FORWARD 10pt ; see above FORWARD 0.5in ; move forward 0.5 inch (1 inch = 2.54 cm) FORWARD 1" ; see above FD 1mm FD 1cm BACK (bk) BACK 10 ; move back 10pt LEFT (lt) LEFT 90 ; turn counterclockwise 90 degrees LEFT 90° ; see above LT 3h ; see above (clock position) LT any ; turn to a random position RIGHT (rt* RIGHT 90 ; turn clockwise 90 degrees PENUP (pu) PENUP ; turtle will move without drawing PENDOWN (pd) PENDOWN ; turtle will move with drawing POSITION (pos) POSITION [0, 0] ; turn and move to the top-left corner POSITION PAGESIZE ; turn and move to the bottom-right corner POSITION [PAGESIZE[0], 0] ; turn and move to the top-right corner POSITION ANY ; turn and move to a random position HE(!,NG (seth* 8 of 24 795A<58A76 7?48: LibreLogo Toolbar - LibreOffice Help /--p%45/help.libreoffice.org/index.php?-itle=Writer/LibreL..3 HEADING 0 ; turn north HEADING 12h ; see above HEADING [0, 0] ; turn to the top-left corner HEADING ANY ; turn to a random direction Other turtle commands HIDETURTLE (ht) HIDETURTLE ; hide turtle (until the showturtle command) SHO'TURTLE (st) SHOWTURTLE ; show turtle HOME HOME ; reset initial turtle settings and position CLEARSCREEN (cs) CLEARSCREEN ; remove drawing objects of the document FILL and CLOSE FILL ; close and fill the actual

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    24 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us