afu intro

This commit is contained in:
MaZderMind 2016-05-09 23:25:32 +02:00
parent c425095984
commit 89515444f0
4 changed files with 536 additions and 0 deletions

73
afu/__init__.py Normal file
View file

@ -0,0 +1,73 @@
#!/usr/bin/python3
from renderlib import *
from easing import *
def introFrames(p):
move=50
# 1/2 Sekunden stehen lassen
frames = 12
for i in range(0, frames):
yield (
('text', 'style', 'opacity', "%.4f" % 0),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % 0),
)
# 3 Sekunde Text Fadein
frames = 3*fps
for i in range(0, frames):
yield (
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames)),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % easeOutQuad(i, -move, move, frames)),
)
# 2 Sekunden stehen lassen
frames = 2*fps
for i in range(0, frames):
yield (
('text', 'style', 'opacity', "%.4f" % 0),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % 0),
)
# 3 Sekunde Text Fadeout
frames = 3*fps
for i in range(0, frames):
yield (
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % easeInQuad(i, 0, move, frames)),
)
# two final frames
for i in range(0, 2):
yield (
('text', 'style', 'opacity', "%.4f" % 0),
('text', 'attr', 'transform', 'translate(%.4f, 0)' % move),
)
def outroFrames(p):
# 5 Sekunden stehen bleiben
frames = 5*fps
for i in range(0, frames):
yield []
def debug():
render(
'intro.svg',
'../intro.ts',
introFrames,
{
'$id': 1,
'$title': 'Spaziergang durch den Funkgerätewald',
'$person': 'Andreas DJ3EI'
}
)
render(
'outro.svg',
'../outro.ts',
outroFrames
)
def tasks(queue, args):
raise NotImplementedError('call with --debug to render your intro/outro')

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.9 KiB

155
afu/artwork/intro.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 102 KiB

307
afu/artwork/outro.svg Normal file
View file

@ -0,0 +1,307 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1920"
height="1080"
id="svg2"
version="1.1"
inkscape:version="0.48.5 r10040"
sodipodi:docname="outro.svg">
<defs
id="defs4">
<linearGradient
id="linearGradient3807">
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="0"
id="stop3809" />
<stop
id="stop3815"
offset="0.2"
style="stop-color:#ffffff;stop-opacity:0.78431374;" />
<stop
style="stop-color:#ffffff;stop-opacity:0.78431374;"
offset="1"
id="stop3811" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3807"
id="linearGradient3813"
x1="650"
y1="595.07648"
x2="1230"
y2="595.07648"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.99744172,-74.949237,-22.857439)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3807"
id="linearGradient3819"
x1="575.05078"
y1="570.69666"
x2="1155.0508"
y2="570.69666"
gradientUnits="userSpaceOnUse"
spreadMethod="reflect" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3807-2"
id="linearGradient3819-8"
x1="575.05078"
y1="570.69666"
x2="1155.0508"
y2="570.69666"
gradientUnits="userSpaceOnUse"
spreadMethod="reflect" />
<linearGradient
id="linearGradient3807-2">
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="0"
id="stop3809-5" />
<stop
id="stop3815-1"
offset="0.2"
style="stop-color:#ffffff;stop-opacity:1;" />
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="1"
id="stop3811-1" />
</linearGradient>
<linearGradient
gradientTransform="matrix(2.3933139,0,0,1,-1291.5105,359.35582)"
y2="570.69666"
x2="1155.0508"
y1="570.69666"
x1="575.05078"
spreadMethod="reflect"
gradientUnits="userSpaceOnUse"
id="linearGradient4017-1"
xlink:href="#linearGradient3807-2-2"
inkscape:collect="always" />
<linearGradient
id="linearGradient3807-2-2">
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="0"
id="stop3809-5-5" />
<stop
id="stop3815-1-7"
offset="0.2"
style="stop-color:#ffffff;stop-opacity:1;" />
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="1"
id="stop3811-1-0" />
</linearGradient>
<linearGradient
y2="570.69666"
x2="1155.0508"
y1="570.69666"
x1="575.05078"
spreadMethod="reflect"
gradientTransform="matrix(2.3933139,0,0,1,-842.013,2.87365)"
gradientUnits="userSpaceOnUse"
id="linearGradient4510"
xlink:href="#linearGradient3807-2-2"
inkscape:collect="always" />
<filter
id="filter4858"
inkscape:label="Drop Shadow"
width="1.2"
color-interpolation-filters="sRGB">
<feFlood
id="feFlood4860"
flood-opacity="0.29666666666666669"
flood-color="rgb(255,255,255)"
result="flood" />
<feComposite
id="feComposite4862"
in2="SourceGraphic"
in="flood"
operator="in"
result="composite1" />
<feGaussianBlur
id="feGaussianBlur4864"
stdDeviation="2"
result="blur" />
<feOffset
id="feOffset4866"
dx="2"
dy="2.2000000000000002"
result="offset" />
<feComposite
id="feComposite4868"
in2="offset"
in="SourceGraphic"
operator="over"
result="composite2"
dy="0" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="729.24274"
inkscape:cy="474.7336"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="993"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
inkscape:snap-global="true"
inkscape:snap-bbox="true"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:object-paths="false"
inkscape:snap-to-guides="true">
<sodipodi:guide
orientation="0,1"
position="0,0"
id="guide3017" />
<sodipodi:guide
orientation="0,1"
position="0,1080"
id="guide3019" />
<sodipodi:guide
orientation="1,0"
position="0,0"
id="guide3021" />
<sodipodi:guide
orientation="1,0"
position="1920,1337.442"
id="guide3023" />
<sodipodi:guide
orientation="0,1"
position="0,25"
id="guide3025" />
<sodipodi:guide
orientation="0,1"
position="0,1048"
id="guide3027" />
<sodipodi:guide
orientation="1,0"
position="32,0"
id="guide3029" />
<sodipodi:guide
orientation="1,0"
position="1888,0"
id="guide3031" />
<sodipodi:guide
orientation="1,0"
position="960,1080"
id="guide3819" />
<sodipodi:guide
orientation="0,1"
position="0,540"
id="guide3821" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,27.63782)">
<rect
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="rect3797"
width="1920"
height="1080"
x="0"
y="-27.637817" />
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch"
x="959.01093"
y="742.61218"
id="text3893"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3895"
x="959.01093"
y="742.61218"
style="text-align:center;text-anchor:middle;fill:#a5a5a5;fill-opacity:1;font-family:TeX Gyre Adventor;-inkscape-font-specification:TeX Gyre Adventor;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal">More Recordings available on <tspan
style="font-weight:bold;-inkscape-font-specification:TeX Gyre Adventor Bold"
id="tspan3028">media.ccc.de</tspan></tspan></text>
<g
id="g3899"
transform="translate(632.47209,157.2726)"
style="fill:#ffffff;fill-opacity:1">
<path
id="path3901"
d="m 294.407,7.95792 c 6.213,1.027 19.117,20.42198 17.554,56.04198 -4.3,2.287 -9.289,0.945 -12.547,0.894 -10.184,-2.682 -0.678,-29.555 -14.953,-39.546 C 263.79,10.8809 119.447,14.4069 45.5808,21.1209 13.592,24.0289 17.478,87.0639 16.8569,120.43 c -0.5169,27.768 0.4448,58.119 11.4189,88.93 9.4468,26.524 44.2989,17.409 75.9712,18.571 56.978,0 160.981,1.883 173.53,-3.125 9.092,-3.629 12.796,-16.972 14.709,-25.575 3.351,-15.069 -0.168,-25.607 11.822,-25.324 6.313,0.149 7.555,5.857 6.592,16.772 -1.001,11.346 -4.393,26.441 -9.128,44.005 -3.421,12.688 -27.012,10.129 -42.628,10.129 C 180.218,242.704 100.45,245.236 24.0554,243.125 1.9155,242.514 1.46946,137.911 0.285625,118.923 -1.10525,96.6069 2.51438,7.01993 21.3615,6.01993 35.3674,5.27692 113.628,0.0309143 159.959,0.0189209 205.016,0.00692749 252.988,1.11093 294.407,7.95792"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path3903"
d="m 223.69,24.0759 c 5.487,15.616 -8.019,40.096 12.24,48.537 73.438,12.662 159.117,-14.772 221.582,23.635 16.882,16.4601 29.544,35.4531 37.563,55.7121 l 0,-9.285 c -9.285,-25.746 -28.278,-47.6931 -46.427,-70.0621 5.065,-6.753 10.974,1.266 16.038,3.376 18.571,23.213 37.563,46.8491 44.739,74.7051 1.265,1.688 3.798,5.065 5.908,2.11 l 2.955,-2.954 c -6.331,-29.966 -25.324,-54.4461 -41.362,-80.1921 7.175,-4.643 14.35,3.377 20.259,8.019 12.24,20.259 25.746,40.5181 30.388,64.1531 3.376,2.532 7.597,-2.11 9.285,-5.065 -2.532,-18.571 -8.864,-35.031 -16.461,-50.6471 1.266,-2.11 1.266,-5.065 4.221,-5.065 18.149,9.707 17.727,30.8111 24.057,47.2711 5.909,-0.422 8.863,-18.993 16.46,-8.019 2.532,6.753 -10.129,17.305 2.955,18.149 -6.331,30.388 -39.674,54.024 -68.796,60.777 -15.194,3.376 -35.453,8.018 -46.849,-3.798 2.11,-5.487 9.707,-6.331 15.194,-7.175 33.765,-1.266 65.842,-13.506 86.101,-40.518 l -0.844,-0.844 c -32.077,21.525 -71.75,42.206 -111.424,26.168 -3.376,-0.844 -5.065,-5.487 -2.954,-8.019 0.844,-2.532 -1.688,-3.798 -2.955,-4.221 -67.108,2.954 -137.596,-6.324 -202.593,4.227 -7.13,1.158 -7.934,7.746 -9.284,13.082 -3.414,13.511 5.21,32.647 -2.824,39.846 0,0 -5.936,1.741 -10.256,-0.177 -1.011,-5.609 -4.227,-37.144 2.948,-54.026 9.077,-21.357 89.954,-14.153 113.334,-14.626 42.722,-0.863 92.638,-2.254 132.734,0.701 -11.396,-11.396 -29.122,-11.818 -46.427,-11.396 -54.868,-0.844 -140.604,-0.559 -175.376,-2.466 -51.431,-2.822 -69.842,48.893 -102.341,82.658 l -15.194,0 c 20.259,-28.277 42.097,-60.522 70.062,-85.256 4.509,-3.988 7.645,-4.615 15.194,-6.752 21.025,-5.953 224.959,0.844 224.959,0.844 9.285,2.11 19.415,3.376 28.278,7.174 -5.065,-13.084 -21.525,-16.46 -34.609,-18.147 -73.017,-2.11 -146.877,-0.422 -218.628,-5.065 -19.415,-5.909 -29.544,-29.9661 -44.739,-44.7391 l -32.499,-41.362 16.46,0.844 c 21.103,24.479 35.575,54.506 62.887,73.8601 6.02,4.266 134.602,3.027 202.584,2.954 10.96,-0.012 33.77,7.175 48.542,15.195 2.532,-3.376 -1.688,-6.331 -4.221,-8.863 -30.811,-29.5441 -94.362,-20.3431 -117.328,-20.2641 -40.285,0.14 -88.233,8.522 -121.559,-12.235 -8.141,-5.071 -6.752,-35.875 -2.953,-52.758 l 10.973,0"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path3905"
d="m 575.267,153.649 c -7.175,30.389 -29.544,57.822 -57.823,73.017 -17.727,3.799 -40.518,15.616 -54.868,-2.11 9.708,-8.863 27.434,-2.954 38.83,-10.13 29.544,-8.441 53.858,-34.474 68.796,-60.777 1.91,-1.321 3.195,-2.823 5.065,0"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path3907"
d="m 584.142,179.84 c -5.065,26.168 -17.727,53.602 -44.739,66.686 -11.818,5.487 -30.388,11.818 -41.362,2.11 l 0,-4.221 c 41.784,1.688 62.887,-42.206 79.77,-71.75 4.643,-0.422 5.065,3.798 6.331,7.175"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path3909"
d="m 611.567,280.265 c 19.879,4.224 39.249,-15.615 43.47,10.131 -16.883,8.863 -39.674,6.331 -57.4,1.266 -3.799,7.597 1.688,16.038 0,25.324 -2.532,24.902 -11.818,48.537 -33.765,63.731 -6.357,3.3 -7.677,5.247 -11.431,5.909 1.138,-5.702 1.527,-10.353 2.5,-13.899 4.346,-2.92 23.503,-15.22 24.125,-31.684 9.707,-34.609 -0.844,-68.796 -24.058,-94.12 l 15.194,-13.928 c 8.863,17.726 18.896,42.495 41.364,47.269"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
id="path3911"
d="m 542.769,257.054 c 24.479,47.271 1.688,102.561 -4.221,151.098 2.532,18.149 5.065,36.719 20.259,49.381 -1.688,4.221 0.844,14.772 -5.909,12.24 -21.525,-11.396 -28.7,-34.187 -28.278,-57.822 -0.844,-41.784 21.525,-75.127 16.038,-117.333 L 536.86,286.6 c -17.305,18.57 -36.719,41.784 -35.453,70.905 l -11.396,2.11 c -12.662,-40.518 31.655,-63.743 37.564,-100.04 0,0 9.707,-3.786 15.194,-2.521"
style="fill:#ffffff;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
</g>
<text
xml:space="preserve"
style="font-size:49.64359283px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Courier 10 Pitch;-inkscape-font-specification:Courier 10 Pitch"
x="794.13159"
y="470.10266"
id="text3926"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3928"
x="794.13159"
y="470.10266"
style="font-weight:normal;text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;font-family:TeX Gyre Adventor;-inkscape-font-specification:TeX Gyre Adventor;font-style:normal;font-stretch:normal;font-variant:normal">www.ccc.de</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB