Skip to content
Snippets Groups Projects
Commit ead50988 authored by Angy Wallot's avatar Angy Wallot
Browse files

projet

parent d7cc1f95
No related branches found
No related tags found
No related merge requests found
class Bloc:
"""Paramètres :
à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$
"""
def __init__(self, uni:bool, coord:list[int]):
"""
uni : True si le bloc est uniforme, False sinon
coord :
Précondition :
Exemple(s) :
$$$
"""
\ No newline at end of file
from PIL import Image, ImageDraw
im = Image.open('images/calbuth.png')
im_rgb = im.convert('RGB')
# def decoupe_image(im, ordre:int):
# """à_remplacer_par_ce_que_fait_la_fonction
#
# Précondition :
# Exemple(s) : ordre entier,
# $$$
#
# """
# if ordre != 0:
# taille = im.size
# blocs = [((0,0),(taille[0]//2, taille[1]//2)),
# ((taille[0]//2,0),(taille, taille[1]//2)),
# ((0,taille[1]//2),(taille[0]//2,taille)),
# ((taille[0]//2,taille[1]//2),(taille,taille))]
# ordre -= 1
# if
projet/images/calbuth.png

25.9 KiB

projet/images/galets.png

129 KiB

projet/images/joconde.png

117 KiB

......@@ -2,3 +2,4 @@
Auteur: Angy Wallot
JOURNAL:
06/03/24: lecture + plan
20/03/24: debut de la classe et de la fonction decoupe
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment