Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Pentagone et Hexagone
Browse files Browse the repository at this point in the history
  • Loading branch information
06Games committed Dec 9, 2021
1 parent 30b04f3 commit 60518cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions formes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ def carre(x, y, longueur, c, t, fill=True):
polygone(x, y, longueur, c, t, 4, fill=fill)


def pentagone(x, y, longueur, c, t, fill=True):
"""Dessine un pentagone"""
polygone(x, y, longueur, c, t, 5, fill=fill)


def hexagone(x, y, longueur, c, t, fill=True):
"""Dessine un hexagone"""
polygone(x, y, longueur, c, t, 6, fill=fill)


def octogone(x, y, longueur, c, t, fill=True):
"""Dessine un octogone"""
polygone(x, y, longueur, c, t, 8, fill=fill)
Expand Down

0 comments on commit 60518cc

Please sign in to comment.