From 2d8216362a15f3ced9dc2fc0aabfa272708703f6 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Sun, 31 Dec 2023 17:32:51 -0500 Subject: [PATCH] scripts/examples: Remove old CENTER argument usage. --- .../02-Image-Processing/00-Drawing/image_drawing_advanced.py | 4 ++-- .../00-Drawing/image_drawing_alpha_blending_test.py | 2 +- .../image_drawing_alpha_blending_with_color_table_test.py | 2 +- .../00-Drawing/image_drawing_alpha_table_test.py | 2 +- .../image_drawing_alpha_table_with_color_table_test.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_advanced.py b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_advanced.py index fc2f59e9a..922db7649 100644 --- a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_advanced.py +++ b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_advanced.py @@ -101,7 +101,7 @@ while True: x_scale=rescale, y_scale=rescale, alpha=240, - hint=image.BILINEAR | image.CENTER, + hint=image.BILINEAR ) status += "alpha:240 " status += "+mask " @@ -113,7 +113,7 @@ while True: x_scale=rescale, y_scale=rescale, alpha=128, - hint=image.BILINEAR | image.CENTER, + hint=image.BILINEAR ) status += "alpha:128 " diff --git a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_test.py b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_test.py index e409d946c..efebb4494 100644 --- a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_test.py +++ b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_test.py @@ -67,7 +67,7 @@ while True: y_bounce, rgb_channel=-1, alpha=alpha_value // alpha_div, - hint=hint | image.CENTER, + hint=hint ) x_bounce += x_bounce_toggle diff --git a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_with_color_table_test.py b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_with_color_table_test.py index 4ad006f75..f6d4bb585 100644 --- a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_with_color_table_test.py +++ b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_blending_with_color_table_test.py @@ -78,7 +78,7 @@ while True: rgb_channel=-1, alpha=alpha_value // alpha_div, color_palette=image.PALETTE_IRONBOW, - hint=hint | image.CENTER, + hint=hint ) x_bounce += x_bounce_toggle diff --git a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_test.py b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_test.py index 5a5429f42..58a0c1089 100644 --- a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_test.py +++ b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_test.py @@ -72,7 +72,7 @@ while True: rgb_channel=-1, alpha=alpha_value // alpha_div, alpha_palette=alpha_lut, - hint=hint | image.CENTER, + hint=hint ) x_bounce += x_bounce_toggle diff --git a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_with_color_table_test.py b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_with_color_table_test.py index b7a843f8b..9fa444636 100644 --- a/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_with_color_table_test.py +++ b/scripts/examples/02-Image-Processing/00-Drawing/image_drawing_alpha_table_with_color_table_test.py @@ -83,7 +83,7 @@ while True: alpha=alpha_value // alpha_div, color_palette=image.PALETTE_IRONBOW, alpha_palette=alpha_lut, - hint=hint | image.CENTER, + hint=hint ) x_bounce += x_bounce_toggle