Defaults from Tim's settings (Duration 200, Pause 400/300, Gravity 4500, BlackMixOuter 80, BlackMixCenter 5)
@@ -36,10 +36,10 @@ it does not show up.
36
36
37
37
| Key | Default | Meaning |
38
38
|------------|---------|-----------------------------------------------------------------|
39
| `Duration` | 300 ms | Morph into the marble |
40
| `Pause` | 600 ms | Marble rests before falling |
41
| `Gravity` | 4000 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |
42
| `BlackMixOuter` | 50 % | Black mix on the outer/lower part of the marble (dull "black glass") |
39
| `Duration` | 200 ms | Morph into the marble |
40
| `Pause` | 400 ms (close) / 300 ms (minimize) | Marble rests before falling |
41
| `Gravity` | 4500 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |
42
| `BlackMixOuter` | 80 % | Black mix on the outer/lower part of the marble (dull "black glass") |
43
43
| `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones |
44
44
45
45
All durations are scaled by Plasma's global animation speed.
@@ -36,10 +36,10 @@ it does not show up.36
36
37
| Key | Default | Meaning |37
| Key | Default | Meaning |38
|------------|---------|-----------------------------------------------------------------|38
|------------|---------|-----------------------------------------------------------------|39
| `Duration` | 300 ms | Morph into the marble |39
| `Duration` | 200 ms | Morph into the marble |40
| `Pause` | 600 ms | Marble rests before falling |40
| `Pause` | 400 ms (close) / 300 ms (minimize) | Marble rests before falling |41
| `Gravity` | 4000 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |41
| `Gravity` | 4500 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) |42
| `BlackMixOuter` | 50 % | Black mix on the outer/lower part of the marble (dull "black glass") |42
| `BlackMixOuter` | 80 % | Black mix on the outer/lower part of the marble (dull "black glass") |43
| `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones |43
| `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones |44
44
45
All durations are scaled by Plasma's global animation speed.45
All durations are scaled by Plasma's global animation speed.@@ -78,16 +78,16 @@ class BurnMyWindowsMarbleEffect {
78
78
// This is called when the effect is loaded and whenever the settings of the effect
79
79
// are changed by the user.
80
80
loadConfig() {
81
this.duration = animationTime(effect.readConfig("Duration", 300));
82
this.pause = animationTime(Number(effect.readConfig("Pause", 600)));
83
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4000))); // px/s^2
81
this.duration = animationTime(effect.readConfig("Duration", 200));
82
this.pause = animationTime(Number(effect.readConfig("Pause", 400)));
83
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4500))); // px/s^2
84
84
let sh = 1080;
85
85
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}
86
86
this.fallDistance = 1.5 * sh;
87
87
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
88
88
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
89
89
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
90
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
90
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 80)))) / 100);
91
91
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
92
92
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
93
93
}
@@ -78,16 +78,16 @@ class BurnMyWindowsMarbleEffect {78
// This is called when the effect is loaded and whenever the settings of the effect78
// This is called when the effect is loaded and whenever the settings of the effect79
// are changed by the user.79
// are changed by the user.80
loadConfig() {80
loadConfig() {81
this.duration = animationTime(effect.readConfig("Duration", 300));81
this.duration = animationTime(effect.readConfig("Duration", 200));82
this.pause = animationTime(Number(effect.readConfig("Pause", 600)));82
this.pause = animationTime(Number(effect.readConfig("Pause", 400)));83
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4000))); // px/s^283
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4500))); // px/s^284
let sh = 1080;84
let sh = 1080;85
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}85
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}86
this.fallDistance = 1.5 * sh;86
this.fallDistance = 1.5 * sh;87
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor87
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor88
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));88
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));89
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);89
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);90
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);90
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 80)))) / 100);91
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);91
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);92
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));92
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));93
}93
}@@ -2,10 +2,10 @@
2
2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
3
3
<kcfgfile name="" />
4
4
<group name="">
5
<entry name="Duration" type="UInt"><default>300</default></entry>
6
<entry name="Pause" type="UInt"><default>600</default></entry>
7
<entry name="Gravity" type="UInt"><default>4000</default></entry>
8
<entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
5
<entry name="Duration" type="UInt"><default>200</default></entry>
6
<entry name="Pause" type="UInt"><default>400</default></entry>
7
<entry name="Gravity" type="UInt"><default>4500</default></entry>
8
<entry name="BlackMixOuter" type="UInt"><default>80</default></entry>
9
9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
10
10
</group>
11
11
</kcfg>
@@ -2,10 +2,10 @@2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">3
<kcfgfile name="" />3
<kcfgfile name="" />4
<group name="">4
<group name="">5
<entry name="Duration" type="UInt"><default>300</default></entry>5
<entry name="Duration" type="UInt"><default>200</default></entry>6
<entry name="Pause" type="UInt"><default>600</default></entry>6
<entry name="Pause" type="UInt"><default>400</default></entry>7
<entry name="Gravity" type="UInt"><default>4000</default></entry>7
<entry name="Gravity" type="UInt"><default>4500</default></entry>8
<entry name="BlackMixOuter" type="UInt"><default>50</default></entry>8
<entry name="BlackMixOuter" type="UInt"><default>80</default></entry>9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>10
</group>10
</group>11
</kcfg>11
</kcfg>@@ -84,16 +84,16 @@ class BurnMyWindowsMarbleMinimizeEffect {
84
84
// This is called when the effect is loaded and whenever the settings of the effect
85
85
// are changed by the user.
86
86
loadConfig() {
87
this.duration = animationTime(effect.readConfig("Duration", 300));
88
this.pause = animationTime(Number(effect.readConfig("Pause", 600)));
89
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4000))); // px/s^2
87
this.duration = animationTime(effect.readConfig("Duration", 200));
88
this.pause = animationTime(Number(effect.readConfig("Pause", 300)));
89
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4500))); // px/s^2
90
90
let sh = 1080;
91
91
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}
92
92
this.fallDistance = 1.5 * sh;
93
93
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor
94
94
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));
95
95
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);
96
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);
96
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 80)))) / 100);
97
97
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);
98
98
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));
99
99
}
@@ -84,16 +84,16 @@ class BurnMyWindowsMarbleMinimizeEffect {84
// This is called when the effect is loaded and whenever the settings of the effect84
// This is called when the effect is loaded and whenever the settings of the effect85
// are changed by the user.85
// are changed by the user.86
loadConfig() {86
loadConfig() {87
this.duration = animationTime(effect.readConfig("Duration", 300));87
this.duration = animationTime(effect.readConfig("Duration", 200));88
this.pause = animationTime(Number(effect.readConfig("Pause", 600)));88
this.pause = animationTime(Number(effect.readConfig("Pause", 300)));89
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4000))); // px/s^289
this.gravity = Math.max(100, Number(effect.readConfig('Gravity', 4500))); // px/s^290
let sh = 1080;90
let sh = 1080;91
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}91
try { sh = effects.virtualScreenGeometry.height || sh; } catch (e) {}92
this.fallDistance = 1.5 * sh;92
this.fallDistance = 1.5 * sh;93
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor93
// free fall from rest: d = 0.5 g t^2 -> t = sqrt(2d/g); scaled by the global speed factor94
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));94
this.fallDuration = animationTime(Math.round(1000 * Math.sqrt(2 * this.fallDistance / this.gravity)));95
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);95
effect.setUniform(this.shader, 'uDuration', (this.duration + this.pause + this.fallDuration) * 0.001);96
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 50)))) / 100);96
effect.setUniform(this.shader, 'uMixOuter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixOuter', 80)))) / 100);97
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);97
effect.setUniform(this.shader, 'uMixCenter', Math.min(100, Math.max(0, Number(effect.readConfig('BlackMixCenter', 5)))) / 100);98
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));98
effect.setUniform(this.shader, 'uCrumpleEnd', this.duration / Math.max(1, this.duration + this.pause + this.fallDuration));99
}99
}@@ -2,10 +2,10 @@
2
2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
3
3
<kcfgfile name="" />
4
4
<group name="">
5
<entry name="Duration" type="UInt"><default>300</default></entry>
6
<entry name="Pause" type="UInt"><default>600</default></entry>
7
<entry name="Gravity" type="UInt"><default>4000</default></entry>
8
<entry name="BlackMixOuter" type="UInt"><default>50</default></entry>
5
<entry name="Duration" type="UInt"><default>200</default></entry>
6
<entry name="Pause" type="UInt"><default>300</default></entry>
7
<entry name="Gravity" type="UInt"><default>4500</default></entry>
8
<entry name="BlackMixOuter" type="UInt"><default>80</default></entry>
9
9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>
10
10
</group>
11
11
</kcfg>
@@ -2,10 +2,10 @@2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">2
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">3
<kcfgfile name="" />3
<kcfgfile name="" />4
<group name="">4
<group name="">5
<entry name="Duration" type="UInt"><default>300</default></entry>5
<entry name="Duration" type="UInt"><default>200</default></entry>6
<entry name="Pause" type="UInt"><default>600</default></entry>6
<entry name="Pause" type="UInt"><default>300</default></entry>7
<entry name="Gravity" type="UInt"><default>4000</default></entry>7
<entry name="Gravity" type="UInt"><default>4500</default></entry>8
<entry name="BlackMixOuter" type="UInt"><default>50</default></entry>8
<entry name="BlackMixOuter" type="UInt"><default>80</default></entry>9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>9
<entry name="BlackMixCenter" type="UInt"><default>5</default></entry>10
</group>10
</group>11
</kcfg>11
</kcfg>