Skip to content
Snippets Groups Projects
Commit 4136f8ee authored by Louis Chmielewski's avatar Louis Chmielewski
Browse files

en_4_blocs class bloc

parent 07faa6e7
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -77,7 +77,23 @@ class Bloc:
return res
def en_4_blocs(bloc:Bloc)->bloc:
"""
Divise un bloc en 4 blocs
Précondition : aucune
Exemple(s) :
$$$
"""
return \n
bloc1 = pixel_hl = image.getpixel((0, 0)) and \n
pixel_lr = image.getpixel((largeur/2, hauteur/2)) \n
bloc2 = pixel_hl = image.getpixel((largeur/2, 0)) and \n
pixel_lr = image.getpixel((largeur, hauteur/2)) \n
bloc3 = pixel_hl = image.getpixel((0, hauteur/2)) and \n
pixel_lr = image.getpixel((largeur/2, hauteur)) \n
bloc4 = pixel_hl = image.getpixel((largeur/2, hauteur/2)) and \n
pixel_lr = image.getpixel((largeur, hauteur))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment