diff --git a/kwin/build.sh b/kwin/build.sh index 316e54e..4153729 100755 --- a/kwin/build.sh +++ b/kwin/build.sh @@ -128,6 +128,7 @@ generate "energize-a" "[BMW] Energize A" "Beam your windows away" generate "energize-b" "[BMW] Energize B" "Using different transporter technology results in an alternative visual effect" generate "fire" "[BMW] Fire" "The classic effect inspired by Compiz" generate "hexagon" "[BMW] Hexagon" "With glowing lines and hexagon-shaped tiles, this effect looks very sci-fi" +generate "incinerate" "[BMW] Incinerate" "A less snappy but definitely more fancy take on the fire effect" generate "tv" "[BMW] TV Effect" "Make windows close like turning off a TV" generate "wisps" "[BMW] Wisps" "Let your windows be carried away to the realm of dreams by these little fairies" diff --git a/kwin/incinerate/config.ui b/kwin/incinerate/config.ui new file mode 100755 index 0000000..f5a89ed --- /dev/null +++ b/kwin/incinerate/config.ui @@ -0,0 +1,94 @@ + + + BMWConfigForm + + + + 0 + 0 + 562 + 365 + + + + + + + Duration: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + Color: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + kcfg_Color + + + + + + + true + + + + + + + Scale: + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + kcfg_Color + + + + + + + 0.100000000000000 + + + 10.000000000000000 + + + + + + + milliseconds + + + 100 + + + 9999 + + + 100 + + + + + + + + KColorButton + QPushButton +
kcolorbutton.h
+
+
+ + +
\ No newline at end of file diff --git a/kwin/incinerate/main.xml b/kwin/incinerate/main.xml new file mode 100755 index 0000000..2e9f6cc --- /dev/null +++ b/kwin/incinerate/main.xml @@ -0,0 +1,19 @@ + + + + + + 2000 + + + 1 + + + 0.2 + + + #ffb47f + + + \ No newline at end of file diff --git a/kwin/incinerate/onSettingsChanged.js b/kwin/incinerate/onSettingsChanged.js new file mode 100644 index 0000000..e81ac40 --- /dev/null +++ b/kwin/incinerate/onSettingsChanged.js @@ -0,0 +1,8 @@ +// This part is automatically included in the effect's source during the build process. +// The code below is called whenever the user changes something in the configuration of +// the effect. + +effect.setUniform(this.shader, 'uDuration', this.duration * 0.001); +effect.setUniform(this.shader, 'uColor', this.readRGBConfig('Color')); +effect.setUniform(this.shader, 'uScale', effect.readConfig('Scale', 1.0)); +effect.setUniform(this.shader, 'uTurbulence', effect.readConfig('Turbulence', 1.0)); \ No newline at end of file