]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Run black on tilegrid.py
authorJames Carr <lesamouraipourpre@gmail.com>
Sat, 13 Feb 2021 16:37:19 +0000 (16:37 +0000)
committerJames Carr <lesamouraipourpre@gmail.com>
Sat, 13 Feb 2021 16:37:19 +0000 (16:37 +0000)
displayio/tilegrid.py

index 5fb564bd56cc0ce612d80666dd7135b5cd22e943..9f35bebebf4b74200064a11a58cf845ad9236e11 100644 (file)
@@ -243,7 +243,9 @@ class TileGrid:
         tile_count_x = bitmap_width // tile_width
 
         image = Image.new(
-            "RGBA", (width * tile_width, height * tile_height), (0, 0, 0, 0),
+            "RGBA",
+            (width * tile_width, height * tile_height),
+            (0, 0, 0, 0),
         )
 
         for tile_x in range(width):
@@ -263,7 +265,10 @@ class TileGrid:
                 image.alpha_composite(
                     tile_image,
                     dest=(tile_x * tile_width, tile_y * tile_height),
-                    source=(tile_index_x * tile_width, tile_index_y * tile_height,),
+                    source=(
+                        tile_index_x * tile_width,
+                        tile_index_y * tile_height,
+                    ),
                 )
 
         if absolute_transform is not None:
@@ -271,7 +276,9 @@ class TileGrid:
                 image = image.resize(
                     (
                         int(pixel_width * absolute_transform.scale),
-                        int(pixel_height * absolute_transform.scale,)
+                        int(
+                            pixel_height * absolute_transform.scale,
+                        ),
                     ),
                     resample=Image.NEAREST,
                 )