| 1 |
<html> |
| 2 |
<center> |
| 3 |
<h2>Gradients</h2> |
| 4 |
</center> |
| 5 |
|
| 6 |
<p>In this demo we show the various types of gradients that can |
| 7 |
be used in Qt.</p> |
| 8 |
|
| 9 |
<p>There are three types of gradients: |
| 10 |
|
| 11 |
<ul> |
| 12 |
<li><b>Linear</b> gradients interpolate colors between start and end |
| 13 |
points.</li> |
| 14 |
<li><b>Radial</b> gradients interpolate colors between a focal point and the |
| 15 |
points on a circle surrounding it.</li> |
| 16 |
<li><b>Conical</b> gradients interpolate colors around a center point.</li> |
| 17 |
</ul> |
| 18 |
|
| 19 |
</p> |
| 20 |
|
| 21 |
<p>The panel on the right contains a color table editor that defines |
| 22 |
the colors in the gradient. The three topmost controls determine the red, |
| 23 |
green and blue components while the last defines the alpha of the |
| 24 |
gradient. You can move points, and add new ones, by clicking with the left |
| 25 |
mouse button, and remove points by clicking with the right button.</p> |
| 26 |
|
| 27 |
<p>There are three example configurations available at the bottom of |
| 28 |
the page that are provided as suggestions on how a color table could be |
| 29 |
configured.</p> |
| 30 |
|
| 31 |
<p>Qt also provides a suite of named gradient presets. They are based on the |
| 32 |
free WebGradients collection. Click on the name in the Presets box to show the |
| 33 |
gradient. Use the arrow buttons to browse through the available presets.</p> |
| 34 |
|
| 35 |
</html> |