# turtleArt | optical illusion

**URL:** <https://metastudio.org/t/turtleart-optical-illusion/3660>\
**Category:** turtleChat\
**Tags:** intermediate, everyone, secondary, hours, featured\
**Created:** [April 28, 2020, 6:35am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660 "2020-04-28T06:35:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi312](https://metastudio.org/user_avatar/metastudio.org/ravi312/32/5552_2.png) [@ravi312](https://metastudio.org/u/ravi312)\
**Post date:** [April 28, 2020, 6:35am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/1 "2020-04-28T06:35:35Z")

</div>

Turtle Art is a great way to explore mathematical and programming concepts in a fun and engaging way. This is inspired by LOGO.  
Here is an example of image formed by repeating a simple sequence of instruction.

 ![rangoli1](https://metastudio.org/uploads/default/original/2X/0/06ce6c026cfb1054170151af726ec975f2f2539b.png)

There is no one right answer. The same shape can be made by various approaches.  
For example, square can be in a visual programming environment in multiple ways

 ![sq2](https://metastudio.org/uploads/default/original/2X/a/a7649a241115ecb94b683d7219269b2628d4dcaf.png)  
 ![sq3](https://metastudio.org/uploads/default/original/2X/b/b0472409991427aefe134545b58600012bd38b17.png)  
 ![sq1](https://metastudio.org/uploads/default/original/2X/5/51eb8f10ee896c81be1992adc61c59e63fbb9cb2.png)

The above is implemented in:  
[https://turtle.sugarlabs.org/](https://turtle.sugarlabs.org/)

A similar square can be implemented in a text-based environment such as python by following a set of commands. python3 has an in-built library for turtle which supports many more features.

 ![sq4](https://metastudio.org/uploads/default/original/2X/f/ffdd901e6267473a90f6d16db2967c6fba337ab9.png)

```python
import turtle
t=turtle.Turtle()

t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)

```

The same can be achieved in lesser number of lines

```python
import turtle
t=turtle.Turtle()

for i in range(4):
  t.forward(100)
  t.right(90)

```

[https://docs.python.org/3/library/turtle.html](https://docs.python.org/3/library/turtle.html)

One can install python3 start their exploration offline. There are also browser-based interfaces like repl.it to explore the same.  
[https://repl.it/languages/python\_turtle](https://repl.it/languages/python_turtle)

> ## Here is the Challenge
> 
> Can you re-create the similar shape and figure out the basic sequence of instruction that is repeated to create this?
> 
> ![rangoli1](https://metastudio.org/uploads/default/original/2X/9/9bc2cdd5d249b4abdabff5387917a878ab11ccb4.jpeg)  
> Here are 4 different images. Changing which value do you think is making the difference?  
> ![rangoli1](https://metastudio.org/uploads/default/original/2X/0/06ce6c026cfb1054170151af726ec975f2f2539b.png) ![rangoli2](https://metastudio.org/uploads/default/original/2X/0/0a7851be524226ea102d10c2124e8bd21649dd21.png) ![rangoli3](https://metastudio.org/uploads/default/original/2X/2/2aa25684cf0d3f903262224b5210fe0ccc7162e9.png) ![rangoli4](https://metastudio.org/uploads/default/original/2X/0/0da9e1cd8709291cf5205c75844e1d936eca8322.png)  
> Can design some more similar challenges and share with us here?

Here is the soothing video which captures the generation of the above shapes  
[https://www.youtube.com/watch?v=3DkNx47OlDU](https://www.youtube.com/watch?v=3DkNx47OlDU)

---

<div class="post-metadata">

**Author:** ![punkish](https://metastudio.org/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@punkish](https://metastudio.org/u/punkish)\
**Post date:** [April 28, 2020, 6:49am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/2 "2020-04-28T06:49:38Z")

</div>

This reminds me of a toy from my childhood called [Spirograph](https://en.m.wikipedia.org/wiki/Spirograph). I am not sure if you can still buy it in India, or for that matter, anywhere. But you might want to try and build one yourself in the maker lab. Eventually you can design one in OpenSCAD make it with your 3-D printer, but until you get access to the lab again, you might want to make a crude one with cardboard.

---

<div class="post-metadata">

**Author:** ![ravi312](https://metastudio.org/user_avatar/metastudio.org/ravi312/32/5552_2.png) [@ravi312](https://metastudio.org/u/ravi312)\
**Post date:** [April 28, 2020, 12:28pm UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/3 "2020-04-28T12:28:43Z")

</div>

Spirograph is amazing! Although, I didn’t know the name that time. I bought this few years ago from outside metro in Delhi.

Yes, designing it on OpenSCAD is good idea.

This is another classic example of how NOT easy is to uncover mathematical principles from seemingly simple toys.

---

<div class="post-metadata">

**Author:** ![jtd](https://metastudio.org/user_avatar/metastudio.org/jtd/32/244_2.png) [@jtd](https://metastudio.org/u/jtd)\
**Post date:** [April 29, 2020, 6:42am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/4 "2020-04-29T06:42:46Z")

</div>

> [@punkish](#):
>
> I am not sure if you can still buy it in India, or for that matter, anywhere.

I have been searching for it for several years, including at the wholesale markets. Most blokes dont know what I am talking about.

---

<div class="post-metadata">

**Author:** ![jtd](https://metastudio.org/user_avatar/metastudio.org/jtd/32/244_2.png) [@jtd](https://metastudio.org/u/jtd)\
**Post date:** [April 29, 2020, 6:43am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/5 "2020-04-29T06:43:36Z")

</div>

> [@ravi312](#):
>
> Yes, designing it on OpenSCAD is good idea.

Yes. Must do a 3d print.

---

<div class="post-metadata">

**Author:** ![vvcstemplay](https://metastudio.org/user_avatar/metastudio.org/vvcstemplay/32/349_2.png) [@vvcstemplay](https://metastudio.org/u/vvcstemplay)\
**Post date:** [April 29, 2020, 8:51am UTC](https://metastudio.org/t/turtleart-optical-illusion/3660/6 "2020-04-29T08:51:00Z")

</div>

> [@jtd](#):
>
> I have been searching for it for several years, including at the wholesale markets.

It used to be available at Mt Carmel Fair, an annual street festival in Bandra, till some years back. But recently, the fair got a bit gentrified.

It’s an exceptionally easy toy to make, though.
