cercle.py

Created by cent20

Created on April 17, 2021

308 Bytes

A l’école primaire, on s’émerveille tous devant les rosaces que l’on peut tracer avec un simple compas. La magie opérera t’elle sur celle-ci ?


# Auteur : Adam Y.
# Réalisé par un de mes élèves de seconde. 
from turtle import *
from kandinsky import *

x,c,s,d,a = 18,225,10,100,0

while a < 10:
  while x > 0:
    pencolor(c,c,c)
    pensize(s)
    circle(d)
    x = x - 1
    right(20)
  x = 18
  c -= 25
  s -= 1
  d -= 10
  a += 1

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 cookies policy.