From ac06d18572cbed83ef00c607902031e5b32e0a37 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 20 Sep 2020 00:19:56 +0200 Subject: [PATCH] Add archconf2020 artwork and script archconf2020/__init__.py: Add black formatted generator script for a simple setup. archconf2020/artwork/*: Add all necessary artwork for intro, outro, background and pause video generation. --- archconf2020/__init__.py | 371 + .../artwork/archlinux-logo-with-text.svg | 156 + archconf2020/artwork/archlinux-logo.svg | 131 + archconf2020/artwork/background.svg | 2679 +++++ archconf2020/artwork/by-sa.svg | 74 + archconf2020/artwork/intro.svg | 306 + archconf2020/artwork/outro.svg | 9986 +++++++++++++++++ archconf2020/artwork/pause.svg | 344 + 8 files changed, 14047 insertions(+) create mode 100644 archconf2020/__init__.py create mode 100644 archconf2020/artwork/archlinux-logo-with-text.svg create mode 100644 archconf2020/artwork/archlinux-logo.svg create mode 100644 archconf2020/artwork/background.svg create mode 100644 archconf2020/artwork/by-sa.svg create mode 100644 archconf2020/artwork/intro.svg create mode 100644 archconf2020/artwork/outro.svg create mode 100644 archconf2020/artwork/pause.svg diff --git a/archconf2020/__init__.py b/archconf2020/__init__.py new file mode 100644 index 0000000..4690ed7 --- /dev/null +++ b/archconf2020/__init__.py @@ -0,0 +1,371 @@ +#!/usr/bin/python3 + +import easing +import renderlib + +# URL to Schedule-XML +scheduleUrl = "https://conf.archlinux.org/schedule2020.xml" + + +def introFrames(args): + # fade in logo + frames = 1 * renderlib.fps + for i in range(0, frames): + yield ( + ( + "logo", + "style", + "opacity", + easing.easeInQuad(i, 0, 1, frames), + ), + ("conf_title", "style", "opacity", 0), + ("title", "style", "opacity", 0), + ("subtitle", "style", "opacity", 0), + ("persons", "style", "opacity", 0), + ("id", "style", "opacity", 0), + ) + # fade in conf_title + frames = 1 * renderlib.fps + for i in range(0, frames): + yield ( + ( + "conf_title", + "style", + "opacity", + easing.easeInQuad(i, 0, 1, frames), + ), + ("title", "style", "opacity", 0), + ("subtitle", "style", "opacity", 0), + ("persons", "style", "opacity", 0), + ("id", "style", "opacity", 0), + ) + + # show conf_title and logo for 1 second + frames = 1 * renderlib.fps + for i in range(0, frames): + yield ( + ("logo", "style", "opacity", 1), + ("conf_title", "style", "opacity", 1), + ("title", "style", "opacity", 0), + ("subtitle", "style", "opacity", 0), + ("persons", "style", "opacity", 0), + ("id", "style", "opacity", 0), + ) + + # move logo and conf_title to right + frames = 2 * renderlib.fps + for i in range(0, frames): + xshift = (i + 1) * 135 / frames + yield ( + ("logo", "style", "opacity", 1), + ("conf_title", "style", "opacity", 1), + ("title", "style", "opacity", 0), + ("subtitle", "style", "opacity", 0), + ("persons", "style", "opacity", 0), + ("id", "style", "opacity", 0), + ("logo", "attr", "transform", f"translate({xshift}, 0)"), + ("conf_title", "attr", "transform", f"translate({xshift}, 0)"), + ) + + # fade in title, subtitle, persons and id + frames = 2 * renderlib.fps + for i in range(0, frames): + yield ( + ("title", "style", "opacity", easing.easeInQuad(i, 0, 1, frames)), + ( + "subtitle", + "style", + "opacity", + easing.easeInQuad(i, 0, 1, frames), + ), + ( + "persons", + "style", + "opacity", + easing.easeInQuad(i, 0, 1, frames), + ), + ("id", "style", "opacity", easing.easeInQuad(i, 0, 1, frames)), + ( + "logo", + "attr", + "transform", + f"translate({xshift}, 0)", + ), + ( + "conf_title", + "attr", + "transform", + f"translate({xshift}, 0)", + ), + ) + # show whole image for 2 seconds + frames = 2 * renderlib.fps + for i in range(0, frames): + yield ( + ("title", "style", "opacity", 1), + ("subtitle", "style", "opacity", 1), + ("persons", "style", "opacity", 1), + ("id", "style", "opacity", 1), + ( + "logo", + "attr", + "transform", + f"translate({xshift}, 0)", + ), + ( + "conf_title", + "attr", + "transform", + f"translate({xshift}, 0)", + ), + ) + + +def backgroundFrames(parameters): + frames = 20 * renderlib.fps + for i in range(0, frames): + xshift = (i + 1) * 300 / frames + yshift = (i + 1) * (150 / frames) + yield ( + ( + "logo_pattern", + "attr", + "transform", + "translate(%.4f, %.4f)" % (xshift, yshift), + ), + ) + + frames = 20 * renderlib.fps + for i in range(0, frames): + xshift = 300 - ((i + 1) * (300 / frames)) + yshift = 150 - ((i + 1) * (150 / frames)) + yield ( + ( + "logo_pattern", + "attr", + "transform", + "translate(%.4f, %.4f)" % (xshift, yshift), + ), + ) + + +def outroFrames(args): + # fadein outro graphics + frames = 3 * renderlib.fps + for i in range(0, frames): + yield ( + ( + "logo", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ( + "conf_title", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ( + "c3voclogo", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ( + "c3voctext", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ( + "bysalogo", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ( + "bysatext", + "style", + "opacity", + easing.easeInQuad(i, 0.01, 1, frames), + ), + ) + frames = 3 * renderlib.fps + for i in range(0, frames): + yield ( + ("logo", "style", "opacity", 1), + ("conf_title", "style", "opacity", 1), + ("c3voclogo", "style", "opacity", 1), + ("c3voctext", "style", "opacity", 1), + ("bysalogo", "style", "opacity", 1), + ("bysatext", "style", "opacity", 1), + ) + + +def pauseFrames(args): + # fade heartgroups + frames = int(0.5 * renderlib.fps) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 0.25, 0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 1, -0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 0.25, 0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 1, -0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 0.25, 0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 1, -0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 0.25, 0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 1, -0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 0.25, 0.75, frames), + ), + ) + for i in range(0, frames): + yield ( + ( + "group", + "style", + "opacity", + easing.easeInQuad(i, 1, -0.75, frames), + ), + ) + + +def debug(): + render( # noqa + "intro.svg", + "../intro.ts", + introFrames, + { + "$id": 7776, + "$title": "StageWar live!", + "$subtitle": "Metal Konzert", + "$persons": "www.stagewar.de", + }, + ) + + render("outro.svg", "../outro.ts", outroFrames) # noqa + + render("background.svg", "../background.ts", backgroundFrames) # noqa + + render("pause.svg", "../pause.ts", pauseFrames) # noqa + + +def tasks(queue, args, idlist, skiplist): + # iterate over all events extracted from the schedule xml-export + for event in renderlib.events(scheduleUrl): + if not (idlist == []): + if 000000 in idlist: + print("skipping id (%s [%s])" % (event["title"], event["id"])) + continue + if int(event["id"]) not in idlist: + print("skipping id (%s [%s])" % (event["title"], event["id"])) + continue + + # generate a task description and put them into the queue + queue.put( + renderlib.Rendertask( + infile="intro.svg", + outfile=str(event["id"]) + ".ts", + sequence=introFrames, + parameters={ + "$id": event["id"], + "$title": event["title"], + "$subtitle": event["subtitle"], + "$persons": event["personnames"], + }, + ) + ) + + # place a task for the outro into the queue + if "out" not in skiplist: + queue.put( + renderlib.Rendertask( + infile="outro.svg", outfile="outro.ts", sequence=outroFrames + ) + ) + + # place the pause-sequence into the queue + if "pause" not in skiplist: + queue.put( + renderlib.Rendertask( + infile="pause.svg", outfile="pause.ts", sequence=pauseFrames + ) + ) + + # place the background-sequence into the queue + if "bg" not in skiplist: + queue.put( + renderlib.Rendertask( + infile="background.svg", + outfile="background.ts", + sequence=backgroundFrames, + ) + ) diff --git a/archconf2020/artwork/archlinux-logo-with-text.svg b/archconf2020/artwork/archlinux-logo-with-text.svg new file mode 100644 index 0000000..5fd0716 --- /dev/null +++ b/archconf2020/artwork/archlinux-logo-with-text.svg @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archconf2020/artwork/archlinux-logo.svg b/archconf2020/artwork/archlinux-logo.svg new file mode 100644 index 0000000..2c65e8b --- /dev/null +++ b/archconf2020/artwork/archlinux-logo.svg @@ -0,0 +1,131 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archconf2020/artwork/background.svg b/archconf2020/artwork/background.svg new file mode 100644 index 0000000..22c8043 --- /dev/null +++ b/archconf2020/artwork/background.svg @@ -0,0 +1,2679 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archconf2020/artwork/by-sa.svg b/archconf2020/artwork/by-sa.svg new file mode 100644 index 0000000..60b44e3 --- /dev/null +++ b/archconf2020/artwork/by-sa.svg @@ -0,0 +1,74 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/archconf2020/artwork/intro.svg b/archconf2020/artwork/intro.svg new file mode 100644 index 0000000..683b104 --- /dev/null +++ b/archconf2020/artwork/intro.svg @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $title + $subtitle + $persons + $id + + diff --git a/archconf2020/artwork/outro.svg b/archconf2020/artwork/outro.svg new file mode 100644 index 0000000..1f0c0e7 --- /dev/null +++ b/archconf2020/artwork/outro.svg @@ -0,0 +1,9986 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + C3VOC + + CC BY-SA 4.0 + + A + Arch Conf 2020 + + + + diff --git a/archconf2020/artwork/pause.svg b/archconf2020/artwork/pause.svg new file mode 100644 index 0000000..66fb5c3 --- /dev/null +++ b/archconf2020/artwork/pause.svg @@ -0,0 +1,344 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +