Skip to content

Commit 4758285

Browse files
committed
Regenerated screenshots with transparent background.
1 parent 0fa7ce5 commit 4758285

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
102 Bytes
Loading

docs/screenshots/scripts/create_chain_comparison.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Gap between images
1212
GAP = 0
13-
BACKGROUND_COLOR = "#1e1e1e"
13+
BACKGROUND_COLOR = (0, 0, 0, 0) # Transparent
1414
LABEL_COLOR = "#ffffff"
1515
LABEL_BG_COLOR = "#000000"
1616

@@ -90,8 +90,8 @@ def create_comparison():
9090
total_width = with_tr_labeled.width + GAP + without_labeled.width
9191
total_height = target_height
9292

93-
# Create canvas and paste images
94-
canvas = Image.new("RGB", (total_width, total_height), BACKGROUND_COLOR)
93+
# Create canvas with transparent background
94+
canvas = Image.new("RGBA", (total_width, total_height), BACKGROUND_COLOR)
9595
canvas.paste(with_tr_labeled, (0, 0))
9696
canvas.paste(without_labeled, (with_tr_labeled.width + GAP, 0))
9797

docs/screenshots/scripts/create_features_composite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Target width to match chain-comparison.webp
1212
TARGET_WIDTH = 2884
13-
BACKGROUND_COLOR = "#1e1e1e"
13+
BACKGROUND_COLOR = (0, 0, 0, 0) # Transparent
1414
LABEL_COLOR = "#ffffff"
1515
LABEL_BG_COLOR = "#000000"
1616

@@ -104,8 +104,8 @@ def create_composite():
104104
print(f" Gap between columns: {gap}")
105105
print(f" Canvas: {TARGET_WIDTH}x{canvas_height}")
106106

107-
# Create canvas
108-
canvas = Image.new("RGB", (TARGET_WIDTH, canvas_height), BACKGROUND_COLOR)
107+
# Create canvas with transparent background
108+
canvas = Image.new("RGBA", (TARGET_WIDTH, canvas_height), BACKGROUND_COLOR)
109109

110110
# Place numpy on left
111111
canvas.paste(numpy_scaled, (0, 0))

docs/screenshots/scripts/create_group_comparison.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Target width to match chain-comparison.webp
1212
TARGET_WIDTH = 2884
13-
BACKGROUND_COLOR = "#1e1e1e"
13+
BACKGROUND_COLOR = (0, 0, 0, 0) # Transparent
1414
LABEL_COLOR = "#ffffff"
1515
LABEL_BG_COLOR = "#000000"
1616

@@ -108,8 +108,8 @@ def create_comparison():
108108
total_width = html_labeled.width + tty_labeled.width
109109
total_height = target_height
110110

111-
# Create canvas and paste images
112-
canvas = Image.new("RGB", (total_width, total_height), BACKGROUND_COLOR)
111+
# Create canvas with transparent background
112+
canvas = Image.new("RGBA", (total_width, total_height), BACKGROUND_COLOR)
113113
canvas.paste(html_labeled, (0, 0))
114114
canvas.paste(tty_labeled, (html_labeled.width, 0))
115115

0 commit comments

Comments
 (0)