escargot_julio.py

Created by christian-mercat

Created on October 31, 2023

455 Bytes

L’escargot de Julio Le Parc.


from turtle import *

#shape("square")
pas=10
pensize(pas)
couleurs = ['#e7c44e', '#a3bd4f', '#52ac51', '#058a57', '#005e5e', '#003d57', '#221d83', '#352b4b', '#551526', '#7e0917', '#b71419', '#df2406', '#fa5b00', '#fb9703'] # contient les 14 couleurs
penup()
goto(0,0)
pendown()

c=0 # compteur
for i in range(1,20):
  for k in range(2): 
    for j in range(i):
      forward(pas)
      color(couleurs[c%14])
      c+=1
    left(90)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.