issue108:inkscape
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue108:inkscape [2016/05/05 13:53] – [4] auntiee | issue108:inkscape [2016/05/05 14:06] (Version actuelle) – [6] auntiee | ||
---|---|---|---|
Ligne 65: | Ligne 65: | ||
Let’s build on our Gaussian Blur to create a simple drop shadow filter. During this process, you’ll learn how to link primitives together to form a chain, and hopefully begin to understand a little more of the power of filters. Start by renaming your existing filter to “Drop Shadow”, re-link the parameters if you need to, and set the blur to a fairly small number – enough that you can clearly see it applied to your object, but not so much that the it just turns into a fuzzy cloud. A value of 2-3 should do the trick.** | Let’s build on our Gaussian Blur to create a simple drop shadow filter. During this process, you’ll learn how to link primitives together to form a chain, and hopefully begin to understand a little more of the power of filters. Start by renaming your existing filter to “Drop Shadow”, re-link the parameters if you need to, and set the blur to a fairly small number – enough that you can clearly see it applied to your object, but not so much that the it just turns into a fuzzy cloud. A value of 2-3 should do the trick.** | ||
- | De même qu'il y a des nœuds d' | + | De même qu'il y a des nœuds d' |
- | À partir de notre flou gaussien, construisons une chaîne en créant un simple filtre d' | + | À partir de notre flou gaussien, construisons une chaîne en créant un simple filtre d' |
**Our shadow is going to be dark, made of translucent black pixels, so the first thing to do is to generate a silhouetted version of our object to pass as an input to the Gaussian Blur primitive. But, of course, we already know of a source of silhouettes – the Source Alpha column. In a slightly back-to-front operation, we can link this source to the Blur’s input by clicking and holding on the triangle, then dragging the mouse to the Source Alpha column before releasing (yes, you drag from input to source, rather than the other way around). If all went smoothly, the line that previously ran to the Source Graphic column has been replaced by one to the Source Alpha instead. Take a look at your text object and you should find it’s turned into a blurry black version of the original. | **Our shadow is going to be dark, made of translucent black pixels, so the first thing to do is to generate a silhouetted version of our object to pass as an input to the Gaussian Blur primitive. But, of course, we already know of a source of silhouettes – the Source Alpha column. In a slightly back-to-front operation, we can link this source to the Blur’s input by clicking and holding on the triangle, then dragging the mouse to the Source Alpha column before releasing (yes, you drag from input to source, rather than the other way around). If all went smoothly, the line that previously ran to the Source Graphic column has been replaced by one to the Source Alpha instead. Take a look at your text object and you should find it’s turned into a blurry black version of the original. | ||
Ligne 73: | Ligne 73: | ||
If we were to display the original over the top of the blurred alpha version, you would just see a halo of darkness around your text. To make it work as a drop shadow we need to offset our blurred image from its original position using the imaginatively titled “Offset” primitive. Select it from the pop-up list just below the filter chain, then click the adjacent “Add Effect” button to add it to your chain. It should automatically be connected to the output of the Blur, as indicated by a small line running from the triangular input of the Offset to the bottom of the Gaussian Blur. Adjust the new primitive’s Delta X and Delta Y parameters to shift your shadow down and to the right – a value of 6.0 in each is a good start.** | If we were to display the original over the top of the blurred alpha version, you would just see a halo of darkness around your text. To make it work as a drop shadow we need to offset our blurred image from its original position using the imaginatively titled “Offset” primitive. Select it from the pop-up list just below the filter chain, then click the adjacent “Add Effect” button to add it to your chain. It should automatically be connected to the output of the Blur, as indicated by a small line running from the triangular input of the Offset to the bottom of the Gaussian Blur. Adjust the new primitive’s Delta X and Delta Y parameters to shift your shadow down and to the right – a value of 6.0 in each is a good start.** | ||
- | Notre ombre va être sombre, faite de pixels noirs translucides ; aussi, la première chose à faire est de générer une version « silhouette » de notre objet pour la passer comme entrée à notre primitive de flou gaussien. Mais, bien sûr, nous connaissions déjà une source de silhouette : la colonne Opacité de la source. Dans une opération légèrement à l' | + | Notre ombre va être sombre, faite de pixels noirs translucides ; aussi, la première chose à faire est de générer une version « silhouette » de notre objet pour la passer comme entrée à notre primitive de flou gaussien. Mais, bien sûr, nous connaissions déjà une source de silhouette : la colonne Opacité de la source. Dans une opération légèrement à l' |
- | Si vous aviez affiché l' | + | Si vous aviez affiché l' |
====== 6 ====== | ====== 6 ====== | ||
Ligne 83: | Ligne 83: | ||
Begin by clicking in the Merge filter’s sole input triangle and then, holding the mouse button down, drag to the triangle in the row above (the Offset filter). Release the button and you should see a connection made, running from the base of the Offset to the input of the Merge. You’ll also notice that the Merge filter has gained a second input triangle. Click and drag from this second triangle to the Source Graphic column. Check the canvas, and you should now have a glorious drop shadow. See, filters aren’t so tricky… right?** | Begin by clicking in the Merge filter’s sole input triangle and then, holding the mouse button down, drag to the triangle in the row above (the Offset filter). Release the button and you should see a connection made, running from the base of the Offset to the input of the Merge. You’ll also notice that the Merge filter has gained a second input triangle. Click and drag from this second triangle to the Source Graphic column. Check the canvas, and you should now have a glorious drop shadow. See, filters aren’t so tricky… right?** | ||
- | Pour l' | + | Pour l' |
- | Commencez par cliquer sur l' | + | Commencez par cliquer sur l' |
**Now tweak the Gaussian Blur and Offset parameters to change the softness of your shadow or its relative position. Then edit the text itself. Each change you make takes place live, and you can re-open the filter editor at any time to make further changes. Try creating a “hard” drop shadow by merging an offset Source Alpha with the Source Graphic, but without using the Gaussian Blur. Or try a bit of motion blur by un-linking the horizontal and vertical sliders; adding some horizontal blur and a horizontal offset; then merging with the Source Graphic again. | **Now tweak the Gaussian Blur and Offset parameters to change the softness of your shadow or its relative position. Then edit the text itself. Each change you make takes place live, and you can re-open the filter editor at any time to make further changes. Try creating a “hard” drop shadow by merging an offset Source Alpha with the Source Graphic, but without using the Gaussian Blur. Or try a bit of motion blur by un-linking the horizontal and vertical sliders; adding some horizontal blur and a horizontal offset; then merging with the Source Graphic again. | ||
Ligne 91: | Ligne 91: | ||
Make sure you understand what we’ve covered in this instalment, because, next time, we’ll build on this simple drop shadow to introduce some more filter primitives that will expand your repertoire further, giving you the capability to achieve effects that just aren’t possible without a little smattering of bitmap magic on your vector objects.** | Make sure you understand what we’ve covered in this instalment, because, next time, we’ll build on this simple drop shadow to introduce some more filter primitives that will expand your repertoire further, giving you the capability to achieve effects that just aren’t possible without a little smattering of bitmap magic on your vector objects.** | ||
- | Maintenant, ajustez les paramètres de flou et de décalage pour modifier la diffusion de votre ombre et sa position relative. Puis éditez le texte. Chaque changement que vous faites est appliqué en direct et vous pouvez rouvrir l' | + | Maintenant, ajustez les paramètres de flou et de décalage pour modifier la diffusion de votre ombre et sa position relative. Puis éditez le texte. Chaque changement que vous faites est appliqué en direct et vous pouvez rouvrir l' |
Assurez-vous de bien comprendre ce que nous avons traité dans cet article car, la prochaine fois, nous partirons de cette simple ombre portée pour introduire d' | Assurez-vous de bien comprendre ce que nous avons traité dans cet article car, la prochaine fois, nous partirons de cette simple ombre portée pour introduire d' | ||
issue108/inkscape.1462449183.txt.gz · Dernière modification : 2016/05/05 13:53 de auntiee