Tips for golfing in Logo Logo is a programming language that was designed back in 1967 that has great potential for creating graphics in relatively few bytes compared to other languages.

Logo is an educational programming language that utilizes Turtle Graphics.

There are multiple interesting implementations of Logo including:


Apple Logo
Atari Logo
LibreLogo (my personal favorite)
Texas Instruments Logo
UCBLogo
And many others...


In addition, multiple Logo interpreters can be found online.

This page is intended to be a hub for code golf tips regarding any implementation of the Logo programming language.



Source: The Great Logo Adventure (1998) by Jim Muller
LibreLogo
Shorten Color Definitions:
It is documented that colors can be defined by name, identifier, RGB value, or HEX code.
In the majority of cases, if you have the opportunity to use an identifier for a color constant, that is typically the shortest option.
On the other hand, a little known fact is that you can also use the decimal value to define a color, and you can occasionally save bytes.
Color Chart:
+------------------------------------------------------------------------+   +-------------+
| Name                | Identifier | RGB           | HEX      | Decimal  |   | Best Option |
|------------------------------------------------------------------------|   |-------------|
| &quot;BLACK&quot;             | [0]        | [0,0,0]       | 0x000000 | 0        |   | 0           |
| &quot;SILVER&quot;            | [1]        | [192,192,192] | 0xc0c0c0 | 12632256 |   | [1]         |
| &quot;GRAY&quot;/&quot;GREY&quot;       | [2]        | [128,128,128] | 0x808080 | 8421504  |   | [2]         |
| &quot;WHITE&quot;             | [3]        | [255,255,255] | 0xffffff | 16777215 |   | [3]         |
| &quot;MAROON&quot;            | [4]        | [128,0,0]     | 0x800000 | 8388608  |   | [4]         |
| &quot;RED&quot;               | [5]        | [255,0,0]     | 0xff0000 | 16711680 |   | [5]         |
| &quot;PURPLE&quot;            | [6]        | [128,0,128]   | 0x800080 | 8388736  |   | [6]         |
| &quot;FUCHSIA&quot;/&quot;MAGENTA&quot; | [7]        | [255,0,255]   | 0xff00ff | 16711935 |   | [7]         |
| &quot;GREEN&quot;             | [8]        | [0,128,0]     | 0x008000 | 32768    |   | [8]         |
| &quot;LIME&quot;              | [9]        | [0,255,0]     | 0x00ff00 | 65280    |   | [9]         |
| &quot;OLIVE&quot;             | [10]       | [128,128,0]   | 0x808000 | 8421376  |   | [10]        |
| &quot;YELLOW&quot;            | [11]       | [255,255,0]   | 0xffff00 | 16776960 |   | [11]        |
| &quot;NAVY&quot;              | [12]       | [0,0,128]     | 0x000080 | 128      |   | 128         |
| &quot;BLUE&quot;              | [13]       | [0,0,255]     | 0x0000ff | 255      |   | 255         |
| &quot;TEAL&quot;              | [14]       | [0,128,128]   | 0x008080 | 32896    |   | [14]        |
| &quot;AQUA&quot;              | [15]       | [0,255,255]   | 0x00ffff | 65535    |   | [15]        |
| &quot;PINK&quot;              | [16]       | [255,192,203] | 0xffc0cb | 16761035 |   | [16]        |
| &quot;TOMATO&quot;            | [17]       | [255,99,71]   | 0xff6347 | 16737095 |   | [17]        |
| &quot;ORANGE&quot;            | [18]       | [255,165,0]   | 0xffa500 | 16753920 |   | [18]        |
| &quot;GOLD&quot;              | [19]       | [255,215,0]   | 0xffd700 | 16766720 |   | [19]        |
| &quot;VIOLET&quot;            | [20]       | [148,0,211]   | 0x9400d3 | 9699539  |   | [20]        |
| &quot;SKYBLUE&quot;           | [21]       | [135,206,235] | 0x87ceeb | 8900331  |   | [21]        |
| &quot;CHOCOLATE&quot;         | [22]       | [210,105,30]  | 0xd2691e | 13789470 |   | [22]        |
| &quot;BROWN&quot;             | [23]       | [165,42,42]   | 0xa52a2a | 10824234 |   | [23]        |
| &quot;INVISIBLE&quot;         | [24]       | N/A           | N/A      | N/A      |   | [24]        |
+------------------------------------------------------------------------+   +-------------+