Blur Particles adds a blur effect to the particles, which increases over the particle's life time.
It uses a custom vertex shader:
\snippet examples/particles/customparticle/content/blurparticles.qml vertex
- to propagate life time simulation to a custom fragement shader:
+ to propagate life time simulation to a custom fragment shader:
\snippet examples/particles/customparticle/content/blurparticles.qml fragment
which has access to both the normal image sampler and a blurred sampler, the image plus a ShaderEffect.
}
}
- // Define a highlight with customised movement between items.
+ // Define a highlight with customized movement between items.
Component {
id: highlightBar
Rectangle {
Start and Stop simply sets the running and paused states of a ParticleSystem. While the system does not perform any simulation when stopped or paused, a restart restarts the simulation from the beginning, while unpausing resumes the simulation from where it was.
- Timed group changes is an example that highlights the ParticleGroup element. While normally referring to groups with a string name is sufficent, additional effects can be
+ Timed group changes is an example that highlights the ParticleGroup element. While normally referring to groups with a string name is sufficient, additional effects can be
done by setting properties on groups.
The first group has a variable duration on it, but always transitions to the second group.
\snippet examples/particles/system/content/timedgroupchanges.qml 0
}
//! [0]
- // Define a highlight with customised movement between items.
+ // Define a highlight with customized movement between items.
Component {
id: highlightBar
Rectangle {
the <img> tag.
'Text Layout' shows how to create a more complex layout for a text element.
- This example lays out the text in two colums using the onLineLaidOut handler
+ This example lays out the text in two columns using the onLineLaidOut handler
that allows you to position and resize each line:
\snippet examples/quick/text/styledtext-layout.qml layout
*/
delay = -1
mousePress(item, x, y, button, modifiers, delay)
- //trigger draging
+ //trigger dragging
mouseMove(item, x + util.dragThreshold + 1, y + util.dragThreshold + 1, delay, button)
mouseMove(item, x + dx, y + dy, delay, button)
}
id:root
function consoleCount() {
- console.count("console.count", "Ignore additonal argument");
+ console.count("console.count", "Ignore additional argument");
console.count();
}
import Qt.test 1.0
import "scarceResourceTest.var.js" as ScarceResourceProviderJs
-// In this case, multiple scarce resource are explicity preserved
+// In this case, multiple scarce resource are explicitly preserved
// and then explicitly destroyed, while others are automatically
// managed. Since none are manually preserved without subsequently
// being destroyed, after the evaluation of the binding the
import Qt.test 1.0
import "scarceResourceTest.variant.js" as ScarceResourceProviderJs
-// In this case, multiple scarce resource are explicity preserved
+// In this case, multiple scarce resource are explicitly preserved
// and then explicitly destroyed, while others are automatically
// managed. Since none are manually preserved without subsequently
// being destroyed, after the evaluation of the binding the
import Qt.test 1.0
import "scarceResourceTest.var.js" as ScarceResourceProviderJs
-// In this case, the scarce resource is explicity preserved.
+// In this case, the scarce resource is explicitly preserved.
// It should not be automatically released after the evaluation
// of the binding is complete, but instead will be kept in
// memory until the JS garbage collector runs.
import Qt.test 1.0
import "scarceResourceTest.variant.js" as ScarceResourceProviderJs
-// In this case, the scarce resource is explicity preserved.
+// In this case, the scarce resource is explicitly preserved.
// It should not be automatically released after the evaluation
// of the binding is complete, but instead will be kept in
// memory until the JS garbage collector runs.
property variant test2: Qt.darker()
property variant test3: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8)
property variant test4: Qt.darker("red");
- property variant test5: Qt.darker("perfectred"); // Non-existant color
+ property variant test5: Qt.darker("perfectred"); // Non-existent color
property variant test6: Qt.darker(10);
property variant test7: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8, 10)
}
property variant test2: Qt.lighter()
property variant test3: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8)
property variant test4: Qt.lighter("red");
- property variant test5: Qt.lighter("perfectred"); // Non-existant color
+ property variant test5: Qt.lighter("perfectred"); // Non-existent color
property variant test6: Qt.lighter(10);
property variant test7: Qt.lighter(Qt.rgba(1, 0.8, 0.3), 1.8, 5)
}
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
- ctx.globalAlpha = 0.01; // avoid any potential alpha=0 optimisations
+ ctx.globalAlpha = 0.01; // avoid any potential alpha=0 optimizations
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
//comparePixel(ctx, 50,25, 2,253,0,255, 2);