From http://www.jwz.org/xscreensaver/xscreensaver-5.40.tar.gz
[xscreensaver] / hacks / config / tessellimage.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <screensaver name="tessellimage" _label="Tessellimage">
4
5   <command arg="-root"/>
6
7   <video href="https://www.youtube.com/watch?v=JNgybysnYU8"/>
8
9   <hgroup>
10    <vgroup>
11     <number id="delay" type="slider" arg="-delay %"
12             _label="Frame rate" _low-label="Low" _high-label="High"
13             low="0" high="100000" default="30000"
14             convert="invert"/>
15
16     <number id="duration2" type="slider" arg="-duration2 %"
17             _label="Speed" _low-label="0.1 second" _high-label="4 seconds"
18             low="0.1" high="4.0" default="0.4"/>
19
20     <number id="duration" type="slider" arg="-duration %"
21             _label="Duration" _low-label="10 seconds" _high-label="10 minutes"
22             low="10" high="600" default="120"/>
23
24     <number id="depth" type="slider" arg="-max-depth %"
25             _label="Complexity" _low-label="Shallow" _high-label="Deep"
26             low="1000" high="100000" default="30000"/>
27    </vgroup>
28
29    <vgroup>
30
31     <select id="mode">
32      <option id="random" _label="Delaunay or voronoi"/>
33      <option _label="Delaunay" arg-set="-mode delaunay"/>
34      <option _label="Voronoi"  arg-set="-mode voronoi"/>
35     </select>
36
37     <xscreensaver-image />
38
39     <boolean id="fill"    _label="Fill screen" arg-unset="-no-fill-screen"/>
40     <boolean id="outline" _label="Outline triangles" arg-unset="-no-outline"/>
41     <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
42
43     <xscreensaver-updater />
44    </vgroup>
45   </hgroup>
46
47   <_description>
48 Converts an image to triangles using Delaunay tessellation, or to
49 polygons using Voronoi tesselation, and animates the result at
50 various depths.
51
52 More polygons are allocated to visually complex parts of the image.
53 This is accomplished by first computing the first derivative of the
54 image: the distance between each pixel and its neighbors (which is
55 essentially edge detection or embossing).  Then the Delaunay or
56 Voronoi control points are chosen by selecting those pixels whose
57 distance value is above a certain threshold: those are the pixels that
58 have the largest change in color/brightness.
59
60 https://en.wikipedia.org/wiki/Delaunay_triangulation
61 https://en.wikipedia.org/wiki/Voronoi_diagram
62 https://en.wikipedia.org/wiki/Tessellation
63
64 Written by Jamie Zawinski; 2014.
65   </_description>
66 </screensaver>