improved slideshow rendering with downscaled images
This commit is contained in:
parent
29b3bb3881
commit
477e536ccc
26
src/main.js
26
src/main.js
@ -26,33 +26,31 @@ function slide_template(slide_data) {
|
|||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const build_image_list = list => list.map(({name, text}) => ({text, url: `https://datenvorr.at/renders/lowres/${name}`, source: `https://datenvorr.at/renders/${name}`}));
|
||||||
|
|
||||||
function fullscreen(element) {
|
function fullscreen(element) {
|
||||||
element.requestFullscreen();
|
element.requestFullscreen();
|
||||||
}
|
}
|
||||||
function close_fullscreen(element) {
|
|
||||||
element
|
|
||||||
}
|
|
||||||
|
|
||||||
init_slideshow([
|
init_slideshow(build_image_list([
|
||||||
{
|
{
|
||||||
url: "https://datenvorr.at/renders/mandelbulb.png",
|
name: "mandelbulb2.png",
|
||||||
text: "A 3d rendering of a mandelbulb with a power of 2"
|
text: "A 3d rendering of a mandelbulb with a power of 2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "https://datenvorr.at/renders/mbulb2.5.png",
|
name: "mandelbulb2.5.png",
|
||||||
text: "A 3d rendering of a mandelbulb with a power of 2.5"
|
text: "A 3d rendering of a mandelbulb with a power of 2.5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "https://datenvorr.at/renders/mandelbulb-pow3.png",
|
name: "mandelbulb3.png",
|
||||||
text: "A Mandelbulb with power 3"
|
text: "A 3d rendering of a mandelbulb with a power of 3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "https://datenvorr.at/renders/mbulb12.png",
|
name: "mandelbulb12.png",
|
||||||
text: "A Mandelbulb with power 12"
|
text: "A 3d rendering of a mandelbulb with a power of 12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: "https://datenvorr.at/renders/mandelbrot-fhd.png",
|
name: "mandelbrot2.png",
|
||||||
source: "https://datenvorr.at/renders/mandelbrot2.png",
|
text: "A mandelbrot set, 250 megapixel render"
|
||||||
text: "A mandelbrot set, downscaled."
|
|
||||||
}
|
}
|
||||||
]);
|
]));
|
||||||
|
Loading…
Reference in New Issue
Block a user