Questions tagged [logo-lang]

Logo is a computer programming language, created mainly for the purposes of education. Please do not use this tag for questions regarding graphical corporate-logos.

Logo was created in 1967 at Bolt, Beranek and Newman (BBN), a Cambridge, Massachusetts research firm, by Wally Feurzeig and Seymour Papert.

Its intellectual roots are in artificial intelligence, mathematical logic and developmental psychology. The first four years of Logo research, development and teaching work was done at BBN.

The first implementation of Logo, called Ghost, was written in LISP on an SDS 950. The goal was to create a math land where kids could play with words and sentences. Modelled on LISP, the design goals of Logo included accessible power and informative error messages.

The use of virtual Turtles allowed for immediate visual feedback and debugging.

This tag was previously named logo, but it was renamed to logo-lang due to confusion with graphical corporate logos. See this meta discussion for more information behind the rationale for the name-change.

References

Sample Program

; draws a square with sides 100 units long
FORWARD 100
LEFT 90
FORWARD 100
LEFT 90
FORWARD 100
LEFT 90
FORWARD 100
LEFT 90
47 questions
1
vote
1 answer

Reflections (geometric transformations) in LOGO

Is it possible to do geometric transformations in LOGO? In particular are horizontal reflections possible? Starting with: to ngon :n :s repeat :n [ fd :s lt 360/:n] end ngon 5 50 I would like a command that would reflect across the line y=0 that…
Bart Snapp
  • 113
  • 3
1
vote
0 answers

UCB Logo readlist procedure not working as example in book says it should

I'm working my way through Computer Science Logo Style using UCB Logo 6.0 on Win10 One of the examples is the extract procedure, on this page: https://people.eecs.berkeley.edu/~bh/v2ch1/files.html My problem is that it will only read one line from…
OutThere
  • 467
  • 2
  • 8
  • 19
1
vote
1 answer

REPL for Logo programming language

Is there any free Logo implementation that offers classic stdin/stdout repl environment under Windows? Like python and ghci are. As far as I can tell FMSLogo is GUI only and ucblogo is terminal based without ability for external program to capture…
Glaukon
  • 321
  • 3
  • 12
1
vote
1 answer

Saving images in ucblogo

I need to save images generated in ucblogo by using commands. I have a lot of logo programs to be executed sequentially and need to store the output logo image for each one as a jpeg file. I am using Ubuntu 16.04. I have tried using the savepict…
Apurv
  • 135
  • 8
1
vote
1 answer

LOGO WebTurtle... draw a half circle at each vertex?

For my college programming class I am having to use Web Turtle. I am trying to draw a spiral like this I know you must start with drawing a 36 sided polygon like this SHOWTURTLE REPEAT 36 DRAW 10 RIGHT 10 NEXT But after that I am lost, I…
cbalos
  • 879
  • 1
  • 9
  • 19
1
vote
1 answer

Ask all turtles but apply to every turtle differently - NetLogo

I'm using net logo and I want to ask all turtles something but apply it to every turtle individually: to setup-t ask turtles [ if color = white [ set t 99 ] if color = red [ set t 92.4 ] if color = orange [ set t 85.8 ] …
bhc11
  • 157
  • 1
  • 2
  • 14
0
votes
3 answers

Logo-based simple scripted 3D CAD drawing software

Is there any 3D CAD software out there, free-ware, shareware, open-source, or commercial, that uses the simplified instruction set made famous by the Logo Turtle (e.g. FORWARD 100, LEFT 90, etc) as the basis for a scripted 3D CAD application? The…
Tim
  • 5,371
  • 3
  • 32
  • 41
0
votes
1 answer

Return length of label, in pixels

How do I return the length, in pixels, of a string that will be printed on the screen by the etiquette command? The command longueuretiquette does not work properly because it does not return in pixels. I'm working on the Logo language
macabeus
  • 4,156
  • 5
  • 37
  • 66
0
votes
1 answer

LOGO to PostScript

I'm trying to find equivalent code in PostScript for my LOGO program: PROC FRACTAL( SIZE ) IF SIZE < 1 THEN FORWARD 5 ELSE LEFT 90 RIGHT 90 RIGHT 90 RIGHT 90 RIGHT 90 RIGHT 90 FORWARD 60 ENDIF PROC MAIN( VOID ) FRACTAL( 5 ) So far I got…
user1806258
  • 87
  • 2
  • 11
0
votes
2 answers

How to design functions in languages which have dynamic scoping?

I recently started writing non-trivial programs in Logo (non-trivial in the sense no turtle graphics). One of the major hurdles I ran into was dynamic scoping. For example consider the following program: to foldl :f :acc :list [:index 1] output…
Aadit M Shah
  • 72,912
  • 30
  • 168
  • 299
0
votes
3 answers

Python program and drawing a square

My program import turtle i = "input()" while i == "input()": if i == "exit": input() if i == "fd": turtle.fd(1) if i == "bk": turtle.bk(1) if i == "lt": turtle.lt(90) if i == "rt": …
user2089413
  • 1
  • 1
  • 1
0
votes
1 answer

How do I hide the turtle in LOGO?

How do I hide the turtle in LOGO?
RSolberg
  • 26,821
  • 23
  • 116
  • 160
-1
votes
2 answers

Design Pattern for Parsing LOGO Turtle Code

In wikipedia, Logo Programming is a multi-paradigm computer programming language used in education. I want to make an application like TurtleGraphicEditor (which using logo programing) using C#. I want each logo command act as method, example…
Hensembryan
  • 1,067
  • 3
  • 14
  • 31
-1
votes
1 answer

how to use the command "for" in logo

I'm not sure how to use the "for" command in logo. Can you help me ‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎‎ ‎
user21044962
-1
votes
2 answers

How can I load a file which includes text and numeric data?

How can I load a *.csv file which includes text and numerical data in LOGO? e.g. N 43.876 W
Sara