Compare commits

...

4 Commits

Author SHA1 Message Date
Kiara Grouwstra 8abb73e368 slower, linger on end result 2021-02-03 19:06:13 +01:00
Kiara Grouwstra 97bf8bc421 gif 02-02 2021-02-02 15:34:07 +01:00
Kiara Grouwstra 8f03a2b4af Merge branch 'piratenpartij' into pirate-gif 2021-02-02 15:33:27 +01:00
Kiara Grouwstra d9e855b4ea pirates 02-02 2021-02-02 15:31:46 +01:00
3 changed files with 8 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -229,7 +229,7 @@
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="30.0">ondersteuningsverklaringen</tspan>
</text>
<text id="text2366" xml:space="preserve" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:left;line-height:100%;writing-mode:lr-tb;text-anchor:left;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;font-family:Arial" x="0.0" y="60.0" sodipodi:linespacing="100%" transform="scale(1.0624898,0.9411855)">
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="60.0">piratenpartij 01-02 12:00 (/30)</tspan>
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="60.0">piratenpartij 02-02 17:05 (/30)</tspan>
</text>
<text id="text2366" xml:space="preserve" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:left;line-height:100%;writing-mode:lr-tb;text-anchor:left;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;font-family:Arial" x="0.0" y="100.0" sodipodi:linespacing="100%" transform="scale(1.0624898,0.9411855)">
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="100.0">deadline: 4 feb.</tspan>
@ -237,8 +237,8 @@
<text id="text2366" xml:space="preserve" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:left;line-height:100%;writing-mode:lr-tb;text-anchor:left;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;font-family:Arial" x="0.0" y="170.0" sodipodi:linespacing="100%" transform="scale(1.0624898,0.9411855)">
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="170.0">Caraïbisch NL:</tspan>
</text>
<text id="text2366" xml:space="preserve" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:left;line-height:100%;writing-mode:lr-tb;text-anchor:left;fill:rgb(255,128,128);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;font-family:Arial;" x="0.0" y="200.0" sodipodi:linespacing="100%" transform="scale(1.0624898,0.9411855)">
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="200.0">6/10 (60%)</tspan>
<text id="text2366" xml:space="preserve" style="font-size:30px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:left;line-height:100%;writing-mode:lr-tb;text-anchor:left;fill:rgb(128,255,128);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;font-family:Arial;" x="0.0" y="200.0" sodipodi:linespacing="100%" transform="scale(1.0624898,0.9411855)">
<tspan id="tspan2368" sodipodi:role="line" x="0.0" y="200.0">10/10 (100%)</tspan>
</text>
<path id="path2370" style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.7885704;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1" d="M 164.24476,243.23958 L 209.18529,257.85887"></path>
<path id="path2372" style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3.06666667;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:10;stroke-dasharray:none" d="M 120.48705,316.7772 L 137.24352,327.15026"></path>

Before

Width:  |  Height:  |  Size: 358 KiB

After

Width:  |  Height:  |  Size: 358 KiB

6
gif.js
View File

@ -25,6 +25,7 @@ const data = {
// 18:00
"01-02": { 1: 35, 2: 37, 3: 31, 4: 38, 5: 38, 6: 40, 7: 40, 8: 40, 9: 40, 10: 40, 11: 40, 12: 36, 13: 36, 14: 40, 15: 40, 16: 31, 17: 32, 18: 38, 19: 31, 20: 6 },
// 12:00
"02-02": { 1: 35, 2: 37, 3: 31, 4: 38, 5: 38, 6: 40, 7: 40, 8: 40, 9: 40, 10: 40, 11: 40, 12: 36, 13: 36, 14: 40, 15: 40, 16: 31, 17: 32, 18: 38, 19: 31, 20: 10 },
}
var pugFile = resolve('./Nederland_kieskringen.svg.pug');
@ -52,4 +53,7 @@ function compileDate(kv) {
return `"${pngFile}"`;
}
var pngs = Object.entries(data).map(compileDate);
logCmd(`magick convert -crop 550x630+0+0 -dispose none -delay 10X30 ${pngs.join(' ')} -coalesce -loop 0 ./gif/kieskringen.gif`);
// linger on end result
var last = pngs[pngs.length-1];
pngs = [...pngs, last, last];
logCmd(`magick convert -crop 550x630+0+0 -dispose none -delay 1X2 ${pngs.join(' ')} -coalesce -loop 0 ./gif/kieskringen.gif`);