MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / _compose_banner

Function _compose_banner

scripts/generate_assets.py:231–239  ·  view source on GitHub ↗

Banner = full-bleed BG (light blue) canvas with the FG slate on the right.

(slate_fg: Image.Image, size: tuple[int, int])

Source from the content-addressed store, hash-verified

229
230
231def _compose_banner(slate_fg: Image.Image, size: tuple[int, int]) -> Image.Image:
232 """Banner = full-bleed BG (light blue) canvas with the FG slate on the right."""
233 width, height = size
234 canvas = Image.new("RGBA", size, BG)
235 pad = max(2, round(height * 0.10))
236 icon_x = width - slate_fg.width - pad
237 icon_y = (height - slate_fg.height) // 2
238 canvas.paste(slate_fg, (icon_x, icon_y), slate_fg)
239 return canvas
240
241
242def _compose_dialog(slate_bg: Image.Image, size: tuple[int, int]) -> Image.Image:

Callers 2

render_installer_jpegsFunction · 0.85
render_installer_staticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected