Avatar frames that follow the outline of the avatar (ring and parts hung on it), packs of frames that arrive from a catalog on the site by themselves, the frame shown to other members through the members service, save an avatar by user name, the diary of the mod, the seek bar on every video, the beta version line and its what is new, plus tests, the catalog builder, the sprites and the scripts that draw them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""Cards for the Telegram post about Serena alpha: the settled frames of the two sticker-style promo videos
|
|
(make_serena_promo.py and make_serena_promo2.py), 1080x1920, no screenshots.
|
|
|
|
usage: py -X utf8 -B scripts/make_serena_cards.py # writes work/serena-cards/card_01.png ...
|
|
"""
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
import make_serena_promo as A # noqa: E402
|
|
import make_serena_promo2 as B # noqa: E402
|
|
|
|
OUT = A.ROOT / "work" / "serena-cards"
|
|
# (module, name, time): the moment of a scene when everything has landed and nothing is half-way
|
|
MOMENTS = [(B, "intro", 2.9), (A, "themes", 8.2), (A, "win95", 13.0), (A, "plugin", 19.2), (B, "icons", 8.6),
|
|
(B, "cards", 14.6), (A, "fun", 24.4), (A, "debug", 29.6), (B, "safe", 24.4), (B, "outro", 29.0)]
|
|
|
|
|
|
def main() -> None:
|
|
OUT.mkdir(parents=True, exist_ok=True)
|
|
for n, (module, name, t) in enumerate(MOMENTS, 1):
|
|
path = OUT / ("card_%02d_%s.png" % (n, name))
|
|
module.frame_at(t).convert("RGB").save(path)
|
|
print(path.name)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|