Giter Site home page Giter Site logo

logo's Introduction

Logo

Repo for implementation of Logo in JavaScript p5

Supported commands

The description(s) and/or example(s) of the commands were taken (and corrected for this interpreter) from the Berkeley Logo Reference Manual under MIT license.

Forward

Moves the turtle forward, in the direction that it's facing, by the specified distance (measured in turtle steps).

  • fd units

Backward

Moves the turtle backward, i.e., exactly opposite to the direction that it's facing, by the specified distance. (The heading of the turtle does not change.)

  • bd units

Right

Turns the turtle clockwise by the specified angle, measured by default in degrees (1/360 of a circle).

  • rt angle

Left

Turns the turtle counterclockwise by the specified angle, measured by default in degrees (1/360 of a circle).

  • lt angle

Penup

Sets the pen's position to UP, without changing its mode.

  • pu

Pendown

Sets the pen's position to DOWN, without changing its mode.

  • pd

Pensize

Sets the thickness of the pen with the given the value. Note: If it's given a negative value, by default will be thickness of 1.

  • pensize thicknessValue

Set X Y

Moves the turtle to an absolute position in the graphics window. The two inputs are numbers, the X and Y coordinates.

  • setxy coordinateX coordinateY

Set X

Moves the turtle horizontally from its old position to a new absolute horizontal coordinate. The input is the new X coordinate.

  • setx coordinateX

Set Y

Moves the turtle vertically from its old position to a new absolute vertical coordinate. The input is the new Y coordinate.

  • sety coordinateY

Home

Moves the turtle to the center of the screen.

  • home

Radians

Changes the angle values to be used as radians

  • radians

Degrees

Changes the angle values to be used as degrees

  • degrees

Repeat

uns the following instruction list repeatedly, num times. Can be nested.

  • repeat num [instruction list]

Color

Sets the pen color given the hexadecimal value in format #FFF / #FFFFFF.

  • color hexadecimalValue

Color RGB

Sets the pen color given the RGB value.

  • colorrgb [red green blue]

Author

Prints the given in the developer console

  • author [author website twitter]

Useful links

Getting Started

Getting started just takes 3 simple steps, each one is a command in the terminal.

  1. Clone this GitHub repository.
  2. Navigate inside the repository directory on your machine.
  3. Host the directory with a local web server.

There are a few easy ways to achieve step number 3 depending on what you already have installed:

Node Package Manager (NPM)

If you have NPM installed you can use the live-server NPM package. The neat thing about live-server is that it automatically refreshes the web page every time you change a file.

If you don't have NPM installed you can download and install it here.

Once you have NPM, install live-server globally with npm install --global live-server.

Then run the following commands in your terminal.

git clone https://github.com/CodingTrain/Logo.git
cd Logo
live-server --port=8080 .

Don't forget the dot at the end of the command on MacOS!

Finally, you can open http://localhost:8080 in your browser and you're away!

Note that when you close the terminal window, the web server will stop as well.


Python 2.x

You can use the SimpleHTTPServer python module.

If you don't have Python 2 installed you can download and install it here.

Then run the following commands in your terminal.

git clone https://github.com/CodingTrain/Logo.git
cd Logo
python -m SimpleHTTPServer 8080

Finally, you can open http://localhost:8080 in your browser and you're away!

Note that when you close the terminal window, the web server will stop as well.


Python 3.x

You can use the http.server python module.

If you don't have Python 3 installed you can download and install it here.

Then run the following commands in your terminal.

git clone https://github.com/CodingTrain/Logo.git
cd Logo
python3 -m http.server 8080

Finally, you can open http://localhost:8080 in your browser and you're away!

Note that when you close the terminal window, the web server will stop as well.

logo's People

Contributors

amrbarghouthi avatar anuraghazra avatar erwin8086 avatar eyluismi avatar ijo-amali avatar melvin-abraham avatar shiffman avatar thetastefultoastie avatar toyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

logo's Issues

The page should probably load with a drawing?

The default color 66ff66 repeat 36 [lt 10 pu fd 1 pd repeat 120 [fd 2 rt 3]] should probably be the starting point. And maybe it should have a name other than "Color Test". "Select Test Data" can be removed as an option, I think it's obvious what it will do?

screen shot 2018-11-10 at 8 20 25 am

Master is broken right now

Hi! I have attempted to try the last changes and I think Master is broken. I have tried to fix it, but I have not time right now :(

I think it broke going from 8ac582c (Fixes Bugs Of #41 (#53)) to 9289167 (Testing args OOP way (#52))

Loops formula

repeat x [repeat y [fd z rt 360/y] rt 360/x]
x: number of polygons to draw
y: number of sides of the polygon
z: size

Berkeley Logo Conformity

In the Berkeley Logo User Manual the commands are implemented as full words and then aliased with shorter two-letter abbreviations and all commands are specified in screaming-case (all uppercase).

  • We currently only implement the abbreviated commands.
  • The abbreviation for BACK appears to be incorrect (currently bd).
  • Uppercase commands are not currently accepted by the interpretor. (Should be case-insensitive?)
  • It seems we should also be able to specify colors using the numbers 0-15 (see below).
Excerpt from the Berkeley Logo User Manual

GRAPHICS

Berkeley Logo provides traditional Logo turtle graphics with one turtle.
Multiple turtles, dynamic turtles, and collision detection are not supported.
This is the most hardware-dependent part of Logo; some features may exist
on some machines but not others. Nevertheless, the goal has been to make
Logo programs as portable as possible, rather than to take fullest advantage
of the capabilities of each machine. In particular, Logo attempts to scale
the screen so that turtle coordinates [-100 -100] and [100 100] fit on the
graphics window, and so that the aspect ratio is 1:1.

The center of the graphics window (which may or may not be the entire
screen, depending on the machine used) is turtle location [0 0]. Positive
X is to the right; positive Y is up. Headings (angles) are measured in
degrees clockwise from the positive Y axis. (This differs from the common
mathematical convention of measuring angles counterclockwise from the
positive X axis.) The turtle is represented as an isoceles triangle; the
actual turtle position is at the midpoint of the base (the short side).
However, the turtle is drawn one step behind its actual position, so that
the display of the base of the turtle's triangle does not obscure a line
drawn perpendicular to it (as would happen after drawing a square).

Colors are, of course, hardware-dependent. However, Logo provides partial
hardware independence by interpreting color numbers 0 through 7 uniformly
on all computers:

0  black	1  blue		2  green	3  cyan
4  red		5  magenta	6  yellow	7 white

Where possible, Logo provides additional user-settable colors; how many
are available depends on the hardware and operating system environment.
If at least 16 colors are available, Logo tries to provide uniform
initial settings for the colors 8-15:

 8  brown	 9  tan		10  forest	11  aqua
12  salmon	13  purple	14  orange	15  grey

Logo begins with a black background and white pen.

TURTLE MOTION

FORWARD dist
FD dist

moves the turtle forward, in the direction that it's facing, by
the specified distance (measured in turtle steps).

BACK dist
BK dist

moves the turtle backward, i.e., exactly opposite to the direction
that it's facing, by the specified distance.  (The heading of the
turtle does not change.)

LEFT degrees
LT degrees

turns the turtle counterclockwise by the specified angle, measured
in degrees (1/360 of a circle).

RIGHT degrees
RT degrees

turns the turtle clockwise by the specified angle, measured in
degrees (1/360 of a circle).

SETPOS pos

moves the turtle to an absolute position in the graphics window.  The
input is a list of two numbers, the X and Y coordinates.

SETXY xcor ycor

moves the turtle to an absolute position in the graphics window.  The
two inputs are numbers, the X and Y coordinates.

SETX xcor

moves the turtle horizontally from its old position to a new
absolute horizontal coordinate.  The input is the new X
coordinate.

SETY ycor

moves the turtle vertically from its old position to a new
absolute vertical coordinate.  The input is the new Y
coordinate.

SETHEADING degrees
SETH degrees

turns the turtle to a new absolute heading.  The input is
a number, the heading in degrees clockwise from the positive
Y axis.

HOME

moves the turtle to the center of the screen.  Equivalent to
SETPOS [0 0] SETHEADING 0.

ARC angle radius

draws an arc of a circle, with the turtle at the center, with the
specified radius, starting at the turtle's heading and extending
clockwise through the specified angle.  The turtle does not move.

How to make a pull request?

Haii There,
I want to make a pull request but i can't do it if i try it asked which branches to merge. And i can push normal to. How to fix it?
image
image

Coding Train Logo

Logo Code

pu bd 280 lt 90 fd 200 rt 90 pu rt 53 fd 971 pd rt 124 fd 24 lt 3 fd 27 lt 3 fd 27 lt 1 fd 27 lt 4 fd 28 lt 1 fd 27 lt 3 fd 32 lt 2 fd 32 lt 4 fd 35 lt 266 fd 108 rt 88 fd 36 rt 1 fd 33 rt 3 fd 33 rt 1 fd 33 rt 3 fd 32 rt 3 fd 31 rt 2 fd 35 rt 3 fd 34 rt 3 fd 37 rt 2 fd 47 rt 4 fd 46 rt 5 fd 30 rt 1 fd 27 rt 2 fd 20 rt 1 fd 23 rt 2 fd 25 rt 1 fd 27 rt 2 fd 28 rt 4 fd 29 rt 1 fd 25 rt 1 fd 27 rt 88 fd 22 lt 1 fd 22 fd 21 fd 22 fd 20 lt 269 fd 21 rt 2 fd 26 lt 3 fd 24 lt 2 fd 27 lt 1 fd 26 lt 6 fd 26 rt 1 fd 23 lt 2 fd 25 lt 4 fd 26 lt 2 fd 25 lt 2 fd 22 pu rt 7 fd 302 pd rt 311 fd 9 pu lt 91 fd 14 pd lt 164 fd 13 pu rt 80 fd 6 pd rt 99 fd 14 pu lt 160 fd 15 pd rt 161 fd 14 pu lt 182 fd 7 pd rt 268 fd 4 pu lt 217 fd 11 pd rt 133 fd 13 lt 92 fd 5 pu lt 129 fd 8 pd rt 131 fd 4 pu lt 87 fd 7 pd rt 261 fd 4 pu lt 165 fd 163 pd rt 113 fd 13 pu rt 76 fd 3 pd lt 320 fd 7 rt 91 fd 7 pu rt 48 fd 11 pd rt 51 fd 6 rt 83 fd 7 pu rt 29 fd 142 pd lt 34 fd 14 lt 266 fd 7 lt 32 fd 6 rt 334 fd 6 lt 39 fd 6 lt 29 fd 7 lt 22 fd 6 lt 10 fd 6 lt 9 fd 5 lt 21 fd 4 lt 32 fd 4 lt 32 fd 5 lt 15 fd 6 lt 25 fd 4 lt 13 fd 5 rt 95 fd 14 rt 86 fd 6 rt 14 fd 6 rt 11 fd 7 rt 14 fd 7 rt 15 fd 8 rt 14 fd 7 rt 15 fd 8 lt 333 fd 8 rt 16 fd 9 rt 20 fd 9 rt 9 fd 8 rt 3 fd 9 rt 17 fd 8 rt 16 fd 8 rt 22 fd 7 rt 13 fd 7 rt 12 fd 7 rt 21 fd 7 rt 12 fd 8 rt 27 fd 8 rt 12 fd 9 pu lt 71 fd 28 pd rt 16 fd 6 rt 31 fd 6 rt 33 fd 6 rt 13 fd 7 rt 14 fd 8 rt 17 fd 7 rt 32 fd 6 rt 42 fd 7 lt 315 fd 8 rt 25 fd 7 rt 17 fd 10 rt 19 fd 8 rt 31 fd 6 pu lt 84 fd 13 pd rt 107 fd 10 rt 29 fd 10 rt 21 fd 10 rt 29 fd 8 rt 15 fd 9 rt 8 fd 10 rt 10 fd 11 rt 20 fd 10 rt 23 fd 10 rt 26 fd 10 rt 26 fd 9 lt 337 fd 10 rt 30 fd 10 rt 11 fd 10 rt 11 fd 10 rt 18 fd 10 rt 11 fd 10 rt 25 fd 9 pu rt 50 fd 68 pd rt 23 fd 4 rt 35 fd 8 rt 19 fd 9 rt 15 fd 10 rt 34 fd 8 rt 48 fd 8 lt 310 fd 7 rt 25 fd 8 rt 15 fd 8 rt 19 fd 8 rt 28 fd 6 rt 35 fd 6 pu lt 54 fd 40 pd rt 233 fd 13 lt 85 fd 24 lt 239 fd 8 rt 339 fd 7 lt 24 fd 9 lt 21 fd 7 lt 24 fd 10 lt 17 fd 10 lt 11 fd 10 lt 9 fd 9 lt 19 fd 10 lt 24 fd 9 lt 22 fd 9 lt 27 fd 9 lt 33 fd 9 rt 98 fd 6 lt 42 fd 8 lt 40 fd 12 lt 101 fd 8 rt 276 fd 4 lt 309 fd 3 rt 67 fd 6 rt 4 fd 64 pu rt 136 fd 30 pd lt 43 fd 15 rt 93 fd 59 rt 87 fd 15 lt 267 fd 59 pu rt 86 fd 23 pd rt 96 fd 59 lt 89 fd 15 lt 89 fd 32 rt 26 fd 7 rt 16 fd 8 rt 16 fd 6 rt 42 fd 4 rt 61 fd 3 rt 22 fd 32 lt 28 fd 6 lt 23 fd 6 lt 37 fd 7 lt 19 fd 6 lt 17 fd 7 lt 92 fd 9 rt 267 fd 5 rt 33 fd 4 lt 284 fd 5 rt 19 fd 19 lt 2 fd 13 lt 3 fd 6 lt 25 fd 7 lt 46 fd 7 rt 333 fd 7 lt 20 fd 7 lt 11 fd 7 lt 9 fd 5 lt 220 fd 11 rt 267 fd 15 pu lt 168 fd 83 pd lt 21 fd 6 rt 32 fd 6 rt 56 fd 9 rt 17 fd 12 rt 19 fd 9 rt 42 fd 7 lt 318 fd 6 rt 42 fd 8 rt 30 fd 10 rt 15 fd 10 rt 34 fd 7 pu rt 1 fd 21 pd rt 43 fd 13 rt 93 fd 67 rt 10 fd 7 rt 25 fd 7 rt 19 fd 8 rt 25 fd 6 lt 348 fd 12 rt 27 fd 6 rt 14 fd 6 rt 31 fd 6 rt 15 fd 8 rt 90 fd 11 rt 95 fd 6 lt 37 fd 4 lt 30 fd 3 lt 29 fd 7 lt 12 fd 4 lt 34 fd 6 lt 42 fd 17 rt 221 fd 7 rt 20 fd 4 rt 19 fd 7 lt 343 fd 8 rt 17 fd 7 rt 25 fd 8 rt 20 fd 10 rt 17 fd 10 rt 10 fd 10 rt 16 fd 11 rt 17 fd 9 rt 28 fd 10 rt 26 fd 10 rt 37 fd 11 lt 133 fd 7 pu rt 82 fd 72 pd rt 10 fd 14 rt 98 fd 20 lt 91 fd 21 rt 82 fd 11 lt 265 fd 23 rt 271 fd 23 lt 3 fd 10 lt 41 fd 3 lt 40 fd 5 lt 20 fd 5 rt 83 fd 10 rt 89 fd 11 rt 14 fd 6 lt 332 fd 4 rt 20 fd 7 rt 25 fd 6 rt 16 fd 11 rt 9 fd 28 rt 264 fd 17 lt 266 fd 14 rt 95 fd 18 lt 91 fd 18 pu rt 114 fd 47 pd lt 23 fd 15 rt 91 fd 13 lt 142 fd 10 rt 17 fd 8 rt 24 fd 8 rt 62 fd 8 rt 24 fd 11 rt 9 fd 13 rt 85 fd 13 lt 265 fd 14 lt 61 fd 4 rt 299 fd 5 lt 10 fd 8 lt 16 fd 8 lt 22 fd 28 lt 273 fd 15 rt 92 fd 59 pu rt 114 fd 53 pd lt 10 fd 13 lt 67 fd 12 rt 20 fd 4 rt 70 fd 3 rt 52 fd 13 rt 79 fd 14 lt 2 fd 9 lt 21 fd 8 lt 23 fd 6 lt 27 fd 6 lt 16 fd 7 lt 43 fd 6 lt 24 fd 5 lt 17 fd 8 lt 6 fd 12 rt 53 fd 5 lt 23 fd 5 lt 33 fd 10 lt 16 fd 7 lt 81 fd 7 rt 265 fd 6 lt 332 fd 3 rt 85 fd 5 rt 7 fd 31 lt 10 fd 12 lt 40 fd 6 lt 35 fd 9 rt 333 fd 9 lt 23 fd 8 lt 10 fd 10 lt 12 fd 9 pu lt 83 fd 29 pd rt 46 fd 6 rt 34 fd 3 lt 303 fd 14 rt 32 fd 3 rt 60 fd 4 rt 48 fd 3 rt 38 fd 16 pu lt 41 fd 66 pd rt 203 fd 6 lt 93 fd 6 pu lt 102 fd 13 pd rt 163 fd 13 pu lt 163 fd 13 pd rt 93 fd 6 rt 92 fd 6 pu rt 18 fd 17 pd lt 152 fd 16 rt 92 fd 60 lt 273 fd 14 rt 91 fd 60 pu rt 91 fd 25 pd lt 2 fd 15 rt 97 fd 10 lt 140 fd 9 rt 15 fd 8 rt 25 fd 9 rt 29 fd 6 rt 38 fd 7 rt 27 fd 7 rt 7 fd 8 fd 10 rt 3 fd 8 lt 4 fd 7 lt 3 fd 4 lt 47 fd 3 lt 61 fd 7 rt 79 fd 8 rt 94 fd 11 lt 333 fd 6 rt 22 fd 6 rt 44 fd 8 rt 25 fd 19 rt 3 fd 11 lt 5 fd 5 lt 27 fd 4 lt 85 fd 9 rt 330 fd 6 lt 7 fd 6 lt 16 fd 6 lt 10 fd 7 lt 2 fd 7 lt 6 fd 7 fd 8 lt 269 fd 15 rt 92 fd 60 pu rt 57 fd 81 pd lt 93 fd 103 lt 57 fd 41 rt 266 fd 44 lt 26 fd 48 lt 59 fd 70 pu lt 161 fd 24 pd rt 41 fd 39 pu lt 58 fd 18 pd rt 240 fd 37 pu lt 198 fd 47 pd rt 198 fd 38 pu lt 223 fd 275 pd rt 141 fd 17 rt 18 fd 16 rt 14 fd 16 rt 8 fd 15 rt 13 fd 17 rt 16 fd 17 rt 14 fd 18 rt 14 fd 16 rt 12 fd 19 rt 14 fd 17 rt 15 fd 16 rt 11 fd 14 rt 10 fd 15 rt 12 fd 16 lt 347 fd 15 rt 13 fd 14 rt 13 fd 15 rt 11 fd 16 rt 11 fd 15 rt 13 fd 15 rt 11 fd 15 rt 10 fd 14 rt 10 fd 13 rt 15 fd 12 rt 8 fd 14 rt 8 fd 12 rt 13 fd 13 rt 11 fd 13 rt 8 fd 14 rt 12 fd 16 pu rt 143 fd 77 pd lt 200 fd 16 rt 17 fd 14 rt 10 fd 13 rt 16 fd 14 rt 15 fd 15 rt 11 fd 14 rt 16 fd 15 rt 10 fd 12 rt 18 fd 14 rt 12 fd 13 rt 12 fd 15 rt 15 fd 15 rt 15 fd 15 rt 16 fd 16 rt 15 fd 15 rt 15 fd 15 rt 12 fd 16 rt 21 fd 15 lt 351 fd 15 rt 19 fd 14 rt 12 fd 14 rt 15 fd 14 rt 10 fd 15 rt 20 fd 16 rt 11 fd 16 pu rt 82 fd 53 pd rt 14 fd 14 rt 45 fd 15 rt 47 fd 14 rt 44 fd 14 lt 319 fd 14 rt 49 fd 15 rt 44 fd 14 rt 45 fd 15 pu lt 69 fd 39 pd rt 181 fd 40 pu lt 119 fd 48 pd rt 164 fd 40 pu lt 65 fd 14 pd lt 70 fd 40 pu rt 164 fd 47 pd lt 118 fd 40 pu lt 196 fd 47 pd rt 242 fd 41 pu lt 197 fd 48 pd rt 240 fd 40 pu lt 196 fd 47 pd rt 241 fd 39 pu lt 196 fd 47 pd lt 119 fd 40 pu rt 304 fd 137 pd lt 165 fd 10 rt 46 fd 10 rt 47 fd 10 rt 43 fd 9 rt 45 fd 10 lt 317 fd 9 rt 44 fd 10 rt 47 fd 10 pu lt 6 fd 29 pd rt 85 fd 14 rt 22 fd 15 rt 22 fd 14 rt 22 fd 14 rt 23 fd 14 rt 23 fd 14 rt 21 fd 14 lt 339 fd 14 rt 24 fd 15 rt 24 fd 14 rt 19 fd 14 rt 27 fd 15 rt 20 fd 14 rt 24 fd 15 rt 24 fd 13 rt 17 fd 15 pu lt 179 pd rt 284 fd 24 pu lt 116 fd 28 pd rt 161 fd 23 pu lt 118 fd 29 pd lt 198 fd 24 pu rt 243 fd 28 pd lt 199 fd 23 pu rt 296 fd 10 pd lt 71 fd 23 pu lt 197 fd 28 pd rt 243 fd 23 pu lt 199 fd 28 pd lt 116 fd 23 pu rt 162 fd 29 pd lt 117 fd 24 pu rt 64 fd 20 pd rt 59 fd 20 rt 25 fd 19 rt 23 fd 20 rt 24 fd 19 rt 19 fd 17 rt 24 fd 20 rt 22 fd 19 rt 23 fd 18 lt 339 fd 17 rt 21 fd 19 rt 23 fd 19 rt 21 fd 18 rt 23 fd 19 rt 23 fd 19 rt 24 fd 21 rt 23 fd 18 pu rt 180 fd 181 pd lt 196 fd 14 rt 21 fd 15 rt 22 fd 14 rt 23 fd 15 rt 23 fd 13 rt 22 fd 14 rt 20 fd 14 rt 24 fd 15 rt 21 fd 14 rt 24 fd 15 lt 339 fd 14 rt 27 fd 15 rt 19 fd 12 rt 22 fd 16 rt 23 fd 14 rt 24 fd 14 pu rt 101 fd 24 pd lt 71 fd 10 rt 48 fd 10 rt 46 fd 9 rt 44 fd 9 rt 44 fd 9 lt 318 fd 9 rt 43 fd 9 rt 47 fd 10 pu fd 30 pd rt 163 fd 25 pu lt 119 fd 30 pd rt 163 fd 25 pu lt 119 fd 29 pd rt 163 fd 24 pu lt 117 fd 29 pd lt 197 fd 24 pu rt 295 fd 9 pd lt 69 fd 25 pu lt 197 fd 29 pd rt 242 fd 25 pu lt 198 fd 29 pd rt 243 fd 24 pu lt 198 fd 29 pd lt 119 fd 25 pu rt 68 fd 20 pd rt 58 fd 19 rt 19 fd 18 rt 24 fd 19 rt 22 fd 20 rt 24 fd 17 rt 20 fd 17 rt 25 fd 22 rt 17 fd 19 rt 32 fd 18 lt 343 fd 18 rt 22 fd 19 rt 22 fd 16 rt 21 fd 21 rt 24 fd 17 rt 23 fd 21 rt 22 fd 19 pu rt 60 fd 71 pd lt 34 fd 59 pu rt 5 fd 96 pd rt 6 fd 53 pu lt 98 fd 15 pd rt 279 fd 31 pu lt 89 fd 16 pd lt 182 fd 112 rt 92 fd 13 lt 89 fd 16 rt 268 fd 20 pu lt 35 fd 312 pd rt 9 fd 22 lt 263 fd 101 rt 87 fd 68 rt 3 fd 59 pu lt 99 fd 15 pd rt 280 fd 45 lt 3 fd 44 lt 2 fd 49 lt 88 fd 15 lt 91 fd 13 pu rt 2 fd 145 pd rt 7 fd 33 rt 2 fd 49 rt 3 fd 41 rt 2 fd 39 rt 4 fd 19 pu rt 34 fd 315 pd lt 193 fd 21 lt 4 fd 16 fd 21 rt 337 fd 7 lt 45 fd 7 lt 50 fd 6 lt 42 fd 6 lt 23 fd 22 rt 4 fd 14 rt 2 fd 22 lt 23 fd 6 lt 41 fd 6 lt 53 fd 7 lt 48 fd 5 pu lt 15 fd 36 pd rt 47 fd 11 lt 19 fd 10 lt 24 fd 10 rt 337 fd 9 lt 29 fd 9 lt 12 fd 8 lt 25 fd 10 lt 22 fd 9 lt 28 fd 9 lt 14 fd 9 lt 26 fd 10 lt 25 fd 9 lt 24 fd 9 lt 20 fd 9 pu lt 121 fd 13 pd rt 224 fd 11 pu lt 200 fd 19 pd rt 241 fd 15 pu lt 195 fd 19 pd rt 240 fd 15 pu lt 196 fd 18 pd lt 117 fd 15 pu rt 162 fd 19 pd lt 117 fd 15 pu rt 114 fd 17 pd rt 107 fd 14 pu lt 110 fd 17 pd rt 159 fd 11 pu lt 130 fd 29 pd lt 56 fd 10 rt 28 fd 10 rt 24 fd 9 rt 17 fd 8 rt 23 fd 9 rt 23 fd 9 rt 22 fd 9 rt 25 fd 10 rt 20 fd 9 rt 22 fd 9 lt 337 fd 9 rt 21 fd 9 rt 26 fd 9 rt 22 fd 11 pu rt 46 fd 25 pd rt 123 fd 12 pu lt 106 fd 18 pd rt 154 fd 15 pu lt 121 fd 19 pd rt 162 fd 16 pu lt 118 fd 19 pd lt 198 fd 16 pu rt 243 fd 19 pd lt 196 fd 16 pu rt 292 fd 6 pd lt 69 fd 16 pu lt 208 fd 18 pd rt 249 fd 12 pu lt 288 fd 97 pd rt 150 fd 44 rt 5 fd 42 rt 3 fd 39 pu lt 183 fd 102 pd rt 255 fd 16 pu lt 194 fd 68 pd rt 116 fd 26 rt 3 fd 43 rt 1 fd 63 pu lt 141 fd 150 pd rt 139 fd 22 rt 2 fd 25 rt 2 fd 21 rt 2 fd 23 rt 1 fd 29 fd 22 fd 19 rt 70 fd 45 rt 33 fd 49 pu lt 210 fd 82 pd rt 193 fd 66 pu lt 200 fd 72 pd rt 198 fd 67 pu lt 199 fd 72 pd rt 199 fd 66 pu lt 200 fd 71 pd rt 198 fd 66 pu lt 208 fd 95 pd rt 23 fd 26 rt 35 fd 6 rt 56 fd 10 rt 13 fd 9 rt 32 fd 5 rt 47 fd 29 pu lt 85 fd 21 pd lt 95 fd 48 rt 1 fd 61 rt 98 fd 34 rt 2 fd 35 rt 3 fd 34 rt 92 fd 26 fd 39 fd 40 pu lt 180 fd 105 pd rt 51 fd 3 lt 37 fd 16 lt 108 fd 26 rt 1 fd 27 lt 2 fd 36 lt 2 fd 30 rt 252 fd 18 lt 70 fd 3 pu rt 98 fd 210 pd lt 200 fd 225 lt 89 fd 14 rt 3 fd 19 lt 3 fd 52 lt 5 fd 59 lt 5 fd 63 rt 239 fd 18 rt 31 fd 208 pu lt 256 fd 204 pd rt 152 fd 39 rt 2 fd 32 rt 5 fd 63 pu rt 6 fd 107 pd lt 177 fd 26 rt 89 fd 132 rt 92 fd 53 rt 3 fd 57 rt 5 fd 51 rt 87 fd 129 lt 268 fd 35 lt 2 fd 32 pu rt 116 fd 160 pd lt 14 fd 18 rt 242 fd 15 lt 208 fd 18 lt 44 fd 14 rt 251 fd 26 lt 79 fd 31 pu rt 9 fd 167 pd lt 120 fd 8 rt 47 fd 8 rt 64 fd 7 rt 68 fd 9 lt 313 fd 8 rt 69 fd 8 pu rt 91 fd 15 pd lt 25 fd 9 rt 115 fd 15 lt 238 fd 9 pu lt 9 fd 17 pd rt 8 fd 8 rt 240 fd 15 lt 111 fd 8 pu rt 189 fd 466 pd lt 317 fd 57 lt 2 fd 21 rt 92 fd 10 rt 75 fd 6 lt 144 fd 7 rt 72 fd 10 rt 101 fd 22 lt 8 fd 53 lt 178 fd 20 rt 19 fd 14 rt 17 fd 10 lt 78 fd 11 rt 29 fd 7 rt 61 fd 13 rt 15 fd 11 rt 64 fd 6 rt 44 fd 12 lt 77 fd 16 rt 10 fd 19 rt 4 fd 33 rt 22 fd 12 rt 68 fd 11 rt 19 fd 12 rt 25 fd 14 rt 19 fd 16 rt 13 fd 19 rt 14 fd 13 lt 333 fd 12 rt 50 fd 15 rt 210 fd 8 lt 20 fd 9 lt 18 fd 9 lt 43 fd 9 lt 33 fd 14 rt 97 fd 6 rt 41 fd 5 rt 39 fd 10 lt 163 fd 5 rt 81 fd 10 pu lt 198 fd 59 pd rt 203 fd 3 lt 63 fd 5 lt 50 fd 7 pu rt 51 fd 10 pd lt 122 fd 14 rt 19 fd 10 rt 68 fd 5 rt 72 fd 10 rt 15 fd 14 pu lt 232 fd 44 pd rt 31 fd 7 rt 284 fd 5 lt 42 fd 5 lt 32 fd 5 lt 37 fd 4 lt 28 fd 5 lt 90 fd 10 pu rt 226 fd 25 pd lt 7 fd 17 pu lt 172 fd 85 pd lt 84 fd 41 rt 209 fd 37 pu rt 70 fd 25 pd lt 284 fd 10 rt 137 fd 10 rt 12 fd 5 rt 12 fd 4 lt 172 fd 8 rt 17 fd 17 rt 153 fd 17 rt 16 fd 10 lt 171 fd 8 rt 28 fd 4 rt 113 fd 5 rt 32 fd 7 pu lt 24 fd 113 pd rt 40 fd 7 lt 127 fd 9 rt 22 fd 9 rt 16 fd 8 rt 23 fd 14 rt 52 fd 11 pu lt 199 fd 15 pd rt 214 fd 11 rt 95 fd 7 lt 23 fd 8 lt 10 fd 10 lt 8 fd 11 rt 16 fd 7 rt 42 fd 7 lt 309 fd 9 rt 13 fd 8 rt 12 fd 13 rt 57 fd 8 lt 33 fd 6 lt 22 fd 5 rt 70 fd 9 lt 131 fd 9 rt 44 fd 5 rt 34 fd 9 rt 84 fd 7 lt 31 fd 3 lt 122 fd 8 rt 27 fd 6 rt 41 fd 9 lt 58 fd 8 rt 9 fd 7 rt 25 fd 5 rt 24 fd 8 rt 34 fd 8 rt 29 fd 5 rt 36 fd 7 lt 62 fd 8 rt 17 fd 4 rt 28 fd 4 rt 27 fd 4 rt 32 fd 4 lt 75 fd 6 rt 78 fd 6 lt 47 fd 15 lt 1 fd 22 rt 4 fd 18 rt 6 fd 10 rt 37 fd 5 rt 34 fd 10 rt 23 fd 5 rt 21 fd 12 rt 16 fd 13 rt 13 fd 15 rt 19 fd 10 lt 345 fd 14 rt 24 fd 10 pu lt 36 fd 7 pd rt 180 fd 7 lt 64 fd 7 pu lt 18 fd 21 pd rt 168 fd 9 lt 11 fd 8 lt 14 fd 6 lt 33 fd 4 lt 64 fd 5 lt 47 fd 8 lt 18 fd 8 lt 2 fd 11 pu rt 102 fd 41 pd rt 129 fd 6 lt 44 fd 6 lt 41 fd 4 lt 46 fd 8 pu rt 149 fd 53 pd lt 66 fd 4 rt 49 fd 5 lt 307 fd 11 rt 27 fd 7 rt 184 fd 7 rt 69 fd 6 lt 19 fd 5 lt 37 fd 5 pu lt 170 fd 70 pd rt 226 fd 12 lt 240 fd 7 rt 33 fd 5 rt 37 fd 6 rt 68 fd 4 rt 51 fd 5 pu lt 80 fd 29 pd rt 179 fd 4 lt 21 fd 4 lt 30 fd 11 lt 226 fd 5 rt 35 fd 11 rt 250 fd 5 lt 57 fd 4 lt 14 fd 10 lt 19 fd 6 lt 215 fd 8 rt 20 fd 7 rt 36 fd 12 pu rt 208 fd 29 pd rt 26 fd 4 lt 37 fd 6 lt 26 fd 7 lt 26 fd 6 lt 20 fd 7 lt 23 fd 7 pu lt 171 fd 13 pd rt 277 fd 7 lt 25 fd 7 lt 25 fd 7 lt 31 fd 7 lt 35 fd 12 pu lt 174 fd 16 pd rt 281 fd 4 lt 45 fd 4 fd 4 rt 45 fd 5 rt 54 fd 7 lt 130 fd 7 lt 34 fd 6 lt 17 fd 7 pu lt 122 fd 111 pd rt 243 fd 22 pu lt 157 fd 17 pd rt 153 fd 22 pu lt 110 fd 58 pd rt 187 fd 7 lt 321 fd 6 rt 42 fd 6 pu rt 118 fd 161 pd lt 112 fd 18 rt 6 fd 19 lt 1 fd 21 lt 87 fd 6 rt 31 fd 6 rt 21 fd 5 rt 34 fd 13 rt 46 fd 7 rt 42 fd 5 rt 12 fd 9 lt 57 fd 8 rt 22 fd 7 rt 30 fd 14 rt 10 fd 19 rt 2 fd 19 rt 4 fd 22 rt 4 fd 10 rt 11 fd 7 rt 61 fd 6 rt 15 fd 8 rt 17 fd 10 rt 15 fd 11 rt 18 fd 13 rt 8 fd 12 rt 11 fd 8 lt 347 fd 11 rt 15 fd 11 rt 18 fd 10 rt 27 fd 11 rt 17 fd 11 pu lt 50 fd 8 pd rt 181 fd 8 lt 74 fd 8 pu lt 137 fd 26 pd rt 271 fd 13 lt 259 fd 6 rt 47 fd 7 rt 54 fd 6 rt 63 fd 7 pu rt 27 fd 44 pd lt 121 fd 12 rt 11 fd 9 rt 33 fd 7 rt 102 fd 7 rt 21 fd 8 rt 10 fd 12 pu lt 110 fd 47 pd rt 163 fd 5 lt 48 fd 7 lt 75 fd 9 pu rt 133 fd 54 pd lt 32 fd 6 rt 38 fd 7 lt 328 fd 5 rt 18 fd 8 pu rt 176 fd 11 pd rt 62 fd 16 lt 127 fd 12 rt 4 fd 9 rt 10 fd 6 rt 31 fd 6 rt 41 fd 10 rt 4 fd 17 rt 95 fd 17 lt 266 fd 19 rt 95 fd 14 pu lt 84 fd 76 pd rt 14 fd 46 rt 205 fd 43 pu lt 180 fd 25 pd rt 125 fd 15 pu rt 127 fd 13 pd lt 131 fd 22 pu lt 205 fd 19 pd rt 45 fd 9 lt 15 fd 8 lt 31 fd 7 rt 326 fd 7 lt 117 fd 6 rt 34 fd 9 lt 235 fd 8 lt 26 fd 11 rt 220 fd 7 rt 22 fd 5 lt 243 fd 7 rt 342 fd 7 lt 125 fd 10 pu rt 58 fd 26 pd rt 26 fd 9 lt 29 fd 11 lt 129 fd 8 rt 148 fd 9 fd 6 lt 19 fd 11 lt 137 fd 9 rt 149 fd 9 lt 7 fd 11 lt 130 fd 7 rt 133 fd 11 pu lt 105 fd 246 pd lt 85 fd 8 lt 40 fd 9 lt 42 fd 8 rt 263 fd 16 pu lt 259 fd 33 pd rt 240 fd 8 lt 93 fd 4 lt 16 fd 11 rt 1 fd 10 rt 18 fd 5 rt 7 fd 5 pu rt 180 fd 5 pd lt 266 fd 8 pu lt 82 fd 8 pd rt 176 fd 23 lt 32 fd 7 lt 37 fd 9 rt 241 fd 16 rt 7 fd 11 lt 345 fd 11 rt 20 fd 11 rt 11 fd 7 rt 34 fd 6 lt 56 fd 8 pu rt 148 fd 14 pd rt 148 fd 8 pu lt 302 fd 17 pd rt 268 fd 11 rt 74 fd 10 lt 285 fd 8 rt 50 fd 8 rt 73 fd 11 pu rt 33 fd 76 pd rt 104 fd 5 lt 16 fd 12 rt 9 fd 19 lt 322 fd 11 rt 42 fd 10 rt 28 fd 12 rt 4 fd 16 rt 9 fd 25 rt 50 fd 3 rt 201 fd 6 rt 21 fd 8 lt 311 fd 7 rt 40 fd 13 rt 25 fd 11 rt 39 fd 9 rt 50 fd 8 rt 27 fd 7 lt 89 fd 14 rt 13 fd 13 rt 100 fd 11 lt 20 fd 8 lt 38 fd 7 lt 18 fd 11 lt 41 fd 10 lt 46 fd 12 lt 4 fd 9 rt 92 fd 14 rt 4 fd 18 rt 21 fd 8 rt 65 fd 10 rt 6 fd 12 rt 22 fd 14 rt 21 fd 12 rt 17 fd 14 pu lt 223 fd 55 pd rt 190 fd 6 lt 42 fd 7 lt 75 fd 10 pu rt 169 fd 57 pd lt 277 fd 9 rt 11 fd 10 rt 75 fd 5 rt 76 fd 9 rt 14 fd 11 pu rt 107 fd 53 pd lt 219 fd 11 rt 7 fd 9 rt 29 fd 11 pu rt 84 fd 3 pd lt 173 fd 10 rt 70 fd 15 rt 15 fd 16 rt 75 fd 9 pu lt 241 fd 28 pd rt 54 fd 46 rt 204 fd 51 lt 192 fd 5 lt 47 fd 6 lt 13 fd 8 rt 334 fd 10 lt 137 fd 12 rt 60 fd 4 rt 87 fd 12 lt 130 fd 7 pu rt 48 fd 33 pd lt 6 fd 3 rt 41 fd 11 lt 125 fd 7 rt 87 fd 7 rt 35 fd 9 lt 128 fd 8 rt 119 fd 10 pu lt 193 fd 97 pd rt 114 fd 18 pu lt 160 fd 29 pd rt 155 fd 17 pu lt 36 fd 201 pd lt 89 fd 18 lt 9 fd 21 lt 12 fd 22 lt 12 fd 21 lt 7 fd 26 lt 13 fd 27 lt 10 fd 26 lt 11 fd 30 lt 10 fd 28 rt 352 fd 28 lt 8 fd 19 lt 6 fd 19 pu lt 133 fd 259 pd lt 117 fd 18 lt 10 fd 27 lt 15 fd 28 lt 9 fd 29 lt 12 fd 26 lt 11 fd 33 lt 11 fd 32 lt 11 fd 31 lt 9 fd 28 rt 351 fd 32 lt 11 fd 36 lt 84 fd 8 rt 11 fd 9 pu lt 63 fd 275 pd lt 114 fd 16 lt 6 fd 17 lt 10 fd 25 lt 12 fd 31 lt 9 fd 32 lt 11 fd 29 lt 10 fd 30 lt 12 fd 37 lt 11 fd 37 lt 8 fd 31 rt 352 fd 33 lt 8 fd 25 lt 11 fd 21 lt 118 fd 11 rt 26 fd 11 pu lt 36 fd 302 pd lt 115 fd 12 lt 6 fd 23 lt 8 fd 26 lt 12 fd 27 lt 6 fd 28 lt 10 fd 29 lt 9 fd 30 lt 8 fd 31 lt 11 fd 39 lt 11 fd 41 lt 9 fd 34 rt 351 fd 37 lt 6 fd 27 lt 6 fd 28 lt 75 fd 11 rt 40 fd 9 lt 160 fd 9 rt 55 fd 14 pu rt 7 fd 340 pd lt 115 fd 19 lt 7 fd 23 lt 9 fd 29 lt 8 fd 31 lt 9 fd 33 lt 11 fd 32 lt 8 fd 33 lt 10 fd 35 lt 8 fd 42 lt 13 fd 45 lt 9 fd 36 rt 353 fd 38 lt 7 fd 29 lt 6 fd 38 lt 134 fd 12 rt 38 fd 11 pu lt 36 fd 378 pd lt 111 fd 17 lt 9 fd 22 lt 7 fd 27 lt 7 fd 27 lt 8 fd 30 lt 10 fd 35 lt 5 fd 32 lt 14 fd 35 lt 7 fd 34 lt 8 fd 34 lt 8 fd 31 lt 8 fd 30 lt 5 fd 38 lt 5 fd 36 rt 352 fd 36 lt 8 fd 34 lt 84 fd 10 rt 10 fd 11 lt 271 fd 13 rt 328 fd 12 pu lt 117 fd 427 pd lt 106 fd 20 lt 11 fd 25 lt 6 fd 26 lt 8 fd 28 lt 8 fd 32 lt 9 fd 31 lt 7 fd 30 lt 8 fd 30 lt 8 fd 33 lt 8 fd 32 lt 8 fd 35 lt 6 fd 34 lt 8 fd 38 lt 5 fd 34 rt 354 fd 28 lt 3 fd 31 lt 8 fd 29 lt 2 fd 18 lt 104 fd 17 pu lt 180 fd 17 pd lt 15 fd 14 lt 18 fd 17 lt 23 fd 18 rt 340 fd 17 lt 18 fd 16 pu lt 103 fd 34 pd lt 172 fd 17 lt 16 fd 17 lt 18 fd 19 lt 18 fd 22 rt 340 fd 21 lt 21 fd 19 lt 16 fd 16 lt 16 fd 20 lt 19 fd 16 lt 19 fd 19 lt 18 fd 16 lt 21 fd 17 pu lt 64 fd 26 pd rt 194 fd 13 lt 29 fd 14 lt 25 fd 13 lt 28 fd 13 lt 20 fd 10 lt 21 fd 13 lt 30 fd 16 pu lt 167 fd 28 pd rt 275 fd 17 lt 23 fd 18 lt 22 fd 20 lt 21 fd 17 lt 20 fd 16 lt 20 fd 22 lt 23 fd 24 lt 20 fd 15 lt 11 fd 14 lt 21 fd 16 lt 23 fd 19 lt 18 fd 12 lt 15 fd 13 pu rt 198 fd 43 pd lt 71 fd 13 lt 27 fd 9 lt 22 fd 10 lt 38 fd 10 lt 92 fd 18 pu rt 182 fd 18 pd lt 16 fd 15 lt 20 fd 16 lt 12 fd 14 lt 18 fd 13 lt 19 fd 14 pu rt 241 fd 279 pd lt 156 fd 11 lt 46 fd 8 lt 21 fd 7 lt 26 fd 9 lt 34 fd 10 pu rt 180 fd 10 pd lt 92 fd 11 lt 18 fd 11 lt 28 fd 10 lt 16 fd 13 lt 32 fd 13 lt 25 fd 13 lt 31 fd 13 rt 338 fd 15 lt 28 fd 16 pu lt 93 fd 10 pd lt 183 fd 10 lt 16 fd 10 rt 336 fd 13 lt 22 fd 12 lt 21 fd 12 lt 21 fd 14 lt 30 fd 14 lt 28 fd 12 lt 28 fd 13 lt 31 fd 11 pu rt 179 fd 11 pd lt 83 fd 14 lt 23 fd 11 lt 27 fd 12 lt 21 fd 14 lt 30 fd 14 lt 20 fd 14 lt 39 fd 13 lt 31 fd 16 pu rt 266 fd 125 pd lt 120 fd 9 rt 34 fd 12 rt 55 fd 12 lt 309 fd 12 rt 47 fd 10 rt 30 fd 7 pu rt 72 fd 5 pd rt 183 fd 5 lt 331 fd 7 rt 35 fd 8 rt 33 fd 8 rt 40 fd 10 rt 34 fd 8 rt 35 fd 10 rt 28 fd 5 pu rt 68 fd 14 pd lt 198 fd 7 rt 39 fd 7 rt 28 fd 8 rt 38 fd 8 rt 43 fd 9 rt 38 fd 9 rt 46 fd 8 pu lt 102 fd 121 pd lt 137 fd 48 rt 205 fd 40 pu lt 180 fd 19 pd rt 115 fd 13 pu rt 135 fd 12 pd lt 130 fd 20 pu lt 66 fd 303 pd rt 82 fd 6 lt 88 fd 4 lt 73 fd 5 lt 64 fd 5 rt 302 fd 4 lt 38 fd 6 lt 47 fd 4 lt 26 fd 4 lt 57 fd 6 lt 29 fd 6 lt 34 fd 7 lt 55 fd 8 pu rt 22 fd 204 pd rt 54 fd 2 rt 89 fd 5 rt 75 fd 5 rt 68 fd 6 lt 311 fd 6 rt 51 fd 6 rt 65 fd 8 rt 50 fd 9 rt 50 fd 9 rt 59 fd 9 pu rt 10 fd 142 pd lt 3 fd 4 lt 71 fd 5 lt 95 fd 7 lt 70 fd 6 rt 291 fd 8 lt 63 fd 7 lt 52 fd 10 lt 63 fd 9 lt 52 fd 10 pu rt 142 fd 46 pd lt 235 fd 4 rt 78 fd 5 rt 91 fd 7 rt 71 fd 7 rt 68 fd 8 lt 297 fd 8 rt 62 fd 10 rt 62 fd 12 pu rt 139 fd 71 pd lt 122 fd 4 lt 86 fd 6 lt 75 fd 4 rt 303 fd 7 lt 67 fd 9 lt 72 fd 10 lt 71 fd 9 lt 38 fd 8 lt 47 fd 7 rt 324 fd 8 pu lt 12 fd 85 pd lt 331 fd 3 rt 76 fd 5 rt 83 fd 6 rt 77 fd 7 rt 64 fd 6 lt 309 fd 7 rt 56 fd 8 rt 58 fd 10 rt 58 fd 10 pu lt 178 fd 79 pd rt 106 fd 5 rt 93 fd 5 rt 69 fd 5 rt 68 fd 7 lt 294 fd 9 rt 79 fd 10 rt 61 fd 9 rt 43 fd 7 rt 38 fd 9 pu rt 29 fd 58 pd lt 264 fd 5 rt 98 fd 5 rt 74 fd 6 rt 59 fd 6 rt 76 fd 8 lt 298 fd 9 rt 69 fd 10 rt 59 fd 13 pu lt 37 fd 153 pd rt 27 fd 6 rt 99 fd 6 rt 80 fd 8 lt 284 fd 8 rt 71 fd 10 rt 56 fd 10 rt 63 fd 8 rt 36 fd 8 pu lt 134 fd 1111


Add Logo 3D Commands

perspective command For 3D Drawing

#add perspective (its original logo command) command for 3D Drawing

logo3d

New Parser

The new Parser has a flaw in it's design as turtle graphics support float values and we cannot actually handle those currently...

Also the new way to add commands can be clunky at times and yield some issues with newer people wanting to contribute as there's no comments to what things are

Added circle command but i have questions.

I have added the circle command, but this is my first time contributing to something on github, so please if you see that i have done something wrong, done something in a diffrent way than i should have, change it and let me know. I dont know if i should use ellipseMode(center) or not, or if i should use w,h instead of radius.

Lines are broken.

You can see it in the basic example "Logo Default", if you do something like fd 100 lt 90 fd 100 the corner
is not smooth. Like in |_ the first line is a little too long for the corner to be smooth.

A smooth corner can only be achieved by something like fd 99 pu fd 1 pd lt 90 fd 100.

How to select which repeat code to merge?

I woke up to many amazing pull requests this morning: #2, #3, #4, #5, #6.

What is the best way for me to select one to merge as well as honor others contributions? Should I just decide? Vote? Just do whatever @meiamsome says (this is my usual approach to coding)?

One idea I have is to merge them one at a time by order of submission. And let each subsequent pull request have a chance to refactor and improve?

README updates

Things that I'm looking for to be added to the README?

  • link to web demo
  • link to thecodingtrain.com challenge pages
  • link to information and history of Logo itself
  • link to YouTube videos
  • example Logo designs

Contributing Guidelines

Need to add to CONTRIBUTING.md

  • link to code of conduct
  • information about what you can contribute
    • design ideas
    • support for addtional logo commands
    • bug fixes

Test data

Choo choo!

rt -2 fd 44 rt 70 fd 15 rt 35 fd 17 rt 76 fd 47 rt 92 fd 63 rt -94 fd 55 rt -120 fd 5 rt 26 fd 40 rt 30 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -23 fd 10 rt -20 fd 5 pu rt 142 fd 38 pd rt 85 fd 38 rt 94 fd 30 rt 106 fd 10 rt -10 fd 10 rt -15 fd 13 rt 88 fd 26 pu rt 85 fd 34 pd rt -80 fd 5 rt 70 fd 7 rt 110 fd 7 pu rt -15 fd 36 pd rt -170 fd 8 rt 95 fd 7 rt 95 fd 7 pu rt 22 fd 51 pd rt -118 fd 4 lt 40 fd 4 rt 25 fd 4 rt 25 fd 4 rt 25 fd 4 lt 30 fd 4 lt 25 fd 4 rt 25 fd 4 rt 25 fd 5 lt 25 fd 5 rt 60 fd 8 lt 60 fd 20 lt 117 fd 22 pu lt 63 fd 20 pd lt 115 fd 14 rt 90 fd 3 lt 60 fd 3 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 rt 140 fd 6 lt 90 fd 5 lt 90 fd 20 lt 90 fd 5 lt 90 fd 20 lt 180 fd 12 lt 50 fd 2 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 rt 25 fd 3 pu lt 24 fd 32 pd lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 lt 35 fd 5 pu rt 97 fd 45 pd rt 110 fd 19 pu lt 90 fd 5 pd lt 90 fd 19 pu rt 90 fd 5 pd rt 90 fd 19 pu lt 90 fd 6 pd lt 90 fd 19 pu rt 25 fd 7 pd lt 15 fd 25 lt 100 fd 26 lt 95 fd 25 rt 180 fd 25 lt 90 fd 3 rt 85 fd 8 rt 100 fd 35 rt 110 fd 8 pu rt 20 fd 95 pd rt 100 fd 15 pu rt 66 fd 6 pd rt 75 fd 16 pu lt 110 fd 20 pd lt 115 fd 15 pu rt 50 fd 6 pd rt 90 fd 17 pu lt 115 fd 20 pd lt 115 fd 17 pu rt 72 fd 6 pd rt 70 fd 17 pu lt 124 fd 23 pd lt 118 fd 17 pu rt 72 fd 6 pd rt 70 fd 15 pu lt 158 fd 95 pd lt 30 fd 5 lt 20 fd 5 lt 20 fd 5 lt 20 fd 10 lt 20 fd 10 lt 20 fd 10 pu lt 146 fd 45 pd lt 110 fd 10 lt 20 fd 5 lt 15 fd 5 lt 15 fd 5 lt 15 fd 10 lt 15 fd 10 lt 15 fd 15 pu lt 150 fd 60 pd lt 120 fd 10 lt 20 fd 12 lt 15 fd 10 lt 15 fd 5 lt 10 fd 12 lt 17 fd 12 lt 15 fd 20 pu lt 145 fd 80 pd lt 120 fd 15 lt 20 fd 15 lt 15 fd 15 lt 15 fd 5 lt 10 fd 12 lt 17 fd 15 lt 15 fd 27 rt 40 fd 5 lt 25 fd 10 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 180 fd 5 lt 60 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 180 fd 5 lt 60 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 180 fd 5 lt 60 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 25 fd 5 lt 180 fd 5 lt 50 fd 5 lt 25 fd 3 lt 50 fd 5 lt 20 fd 5 lt 30 fd 5 lt 30 fd 3 lt 180 fd 6 lt 40 fd 6 lt 40 fd 5

Logo Implementation TODO

Below is a list of things that still need to be implemented into the parser for the logo language:

  • circle > circle radius extend steps
  • dot > dot radius
  • pensize > pensize strokeSize
  • pencolor > pencolor color
  • fillcolor > fillcolor color note: this is dealing with custom shapes which we currently don't support yet
  • fill > fill true/false note: uses fillcolor to fill the shape if true
  • begin_fill > start shape
  • end_fill > end shape
  • write > write text note: this writes to the canvas as text ex "hello world"

Things to implement in turtle to add more features:

  • Dynamic stroke size so we can change it with pensize
  • Ability to create shapes and ill them with a solid color

--

Note: In Logo color sets both fillcolor and pencolor, this means we don't actually implement color properly yet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.