issue129: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 | ||
issue129:inkscape [2018/01/31 09:04] – d52fr | issue129:inkscape [2018/02/03 16:36] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
One significant limitation of SVG, from an artistic point of view, is that it allows for only affine transformations. These are transformations that preserve straight and parallel lines, limiting Inkscape to rotation, scaling and skewing. Non-affine transformations allow the source image to be more radically changed, introducing curves or distortions that let parallel lines converge. They would be a great addition to SVG – especially to allow text to be distorted into logos whilst retaining accessibility – but unfortunately it seems to be an enhancement that’s of little interest to the SVG Working Group. | One significant limitation of SVG, from an artistic point of view, is that it allows for only affine transformations. These are transformations that preserve straight and parallel lines, limiting Inkscape to rotation, scaling and skewing. Non-affine transformations allow the source image to be more radically changed, introducing curves or distortions that let parallel lines converge. They would be a great addition to SVG – especially to allow text to be distorted into logos whilst retaining accessibility – but unfortunately it seems to be an enhancement that’s of little interest to the SVG Working Group. | ||
+ | |||
The Perspective/ | The Perspective/ | ||
+ | |||
+ | Cette fois-ci, nous passons au dernier lot de nouveaux LPE de la 0.92, en commençant par celui qui est à la fois simple à utiliser et potentiellement très utile : Perspective et Enveloppe. | ||
+ | |||
+ | Une des limitations importantes de SVG, d'un point de vue artistique, est qu'il ne permet que des transformations affines. Ce sont les transformations qui conservent les lignes droites et parallèles, | ||
+ | |||
+ | Le LPE Perspective et Enveloppe fournit deux transformations non-affines, | ||
**The effect has a simple UI: the spinboxes at the bottom display the coordinates of the four handles and can largely be ignored as it’s easier to just move the handles on the canvas using the Node tool (F2). The two “mirror” checkboxes are self-explanatory – though there’s no point checking both at once as that will limit you to affine scaling that could be done with Inkscape’s usual transformation tools. The Overflow Perspective checkbox allows the algorithm that calculates perspective transformations to go beyond its usual bounds, allowing for some outlandish distortions that probably have little use in the real world. | **The effect has a simple UI: the spinboxes at the bottom display the coordinates of the four handles and can largely be ignored as it’s easier to just move the handles on the canvas using the Node tool (F2). The two “mirror” checkboxes are self-explanatory – though there’s no point checking both at once as that will limit you to affine scaling that could be done with Inkscape’s usual transformation tools. The Overflow Perspective checkbox allows the algorithm that calculates perspective transformations to go beyond its usual bounds, allowing for some outlandish distortions that probably have little use in the real world. | ||
The “Type” popup lets you choose whether to use Envelope or Perspective deformation. You can freely switch between them to see which gives the best result for your particular image but, broadly speaking, Envelope is a simple distortion of your shape to fit the outline, whereas Perspective allows more complex distortions to provide a sense of depth. You can see the difference in this example – note the more constant thickness of the letters from left to right on the Envelope distortion (top) compared with the Perspective version.** | The “Type” popup lets you choose whether to use Envelope or Perspective deformation. You can freely switch between them to see which gives the best result for your particular image but, broadly speaking, Envelope is a simple distortion of your shape to fit the outline, whereas Perspective allows more complex distortions to provide a sense of depth. You can see the difference in this example – note the more constant thickness of the letters from left to right on the Envelope distortion (top) compared with the Perspective version.** | ||
+ | |||
+ | L' | ||
+ | |||
+ | La liste déroulante « Type » vous permet de choisir d' | ||
**For even more wild distortions, | **For even more wild distortions, | ||
The next couple of effects allow you to create via an LPE the sort of symmetry tricks that would have previously required manually setting up some mirrored or rotated clones – as described way back in part 29 of this series. Starting with the Mirror Symmetry effect, once again we have a simple UI that can produce some rather complex results.** | The next couple of effects allow you to create via an LPE the sort of symmetry tricks that would have previously required manually setting up some mirrored or rotated clones – as described way back in part 29 of this series. Starting with the Mirror Symmetry effect, once again we have a simple UI that can produce some rather complex results.** | ||
+ | |||
+ | Pour des distorsions encore plus délirantes, | ||
+ | |||
+ | Les deux effets suivants vous permettent de créer, via un LPE, la sorte d' | ||
**This effect simply creates multiple copies of the input path, rotated around a common center. The “Number of copies” field defines the number of copies that are created (the original is lost in the process), whilst the “Starting” and “Rotation angle” fields are used to define the angle at which the first copy is placed, and the angle between each copy, respectively. The rotation angle is ignored if the “360° Copies” box is checked – in which case the copies are spaced evenly over a whole circle. In this image, you can see two stylised sun images – the former has the box checked to create a whole sun, whilst the latter uses a smaller rotation angle and different starting angle to produce a sunrise or sunset shape. | **This effect simply creates multiple copies of the input path, rotated around a common center. The “Number of copies” field defines the number of copies that are created (the original is lost in the process), whilst the “Starting” and “Rotation angle” fields are used to define the angle at which the first copy is placed, and the angle between each copy, respectively. The rotation angle is ignored if the “360° Copies” box is checked – in which case the copies are spaced evenly over a whole circle. In this image, you can see two stylised sun images – the former has the box checked to create a whole sun, whilst the latter uses a smaller rotation angle and different starting angle to produce a sunrise or sunset shape. | ||
The rotational center for the effect can be manually set using the corresponding fields or, more practically, | The rotational center for the effect can be manually set using the corresponding fields or, more practically, | ||
+ | |||
+ | Cet effet crée tout simplement de multiples copies de votre chemin d' | ||
+ | |||
+ | Le centre de rotation de cet effet peut être réglé manuellement en utilisant les champs correspondants, | ||
**If you do fuse the shapes, don’t be surprised to see the output somewhat truncated. Try moving the rotation start using the on-canvas handle to gradually expose more of your original shape. The mesmerising effect as you dynamically do this is similar to a kaleidoscope – indeed the original name for this effect was Kaleidoscope! | **If you do fuse the shapes, don’t be surprised to see the output somewhat truncated. Try moving the rotation start using the on-canvas handle to gradually expose more of your original shape. The mesmerising effect as you dynamically do this is similar to a kaleidoscope – indeed the original name for this effect was Kaleidoscope! | ||
Ligne 21: | Ligne 40: | ||
The second of the symmetry effects, Mirror Symmetry, does a similar trick to Rotate Copies, but using reflective symmetry rather than rotational. The UI also has a few similarities: | The second of the symmetry effects, Mirror Symmetry, does a similar trick to Rotate Copies, but using reflective symmetry rather than rotational. The UI also has a few similarities: | ||
+ | |||
+ | Si vous fusionnez les formes, ne soyez pas surpris de voir la sortie quelque peu tronquée. Essayez de déplacer l' | ||
+ | |||
+ | Notez bien, que vous fusionniez les formes ou pas, que le résultat du LPE est (comme toujours) un chemin unique. L' | ||
+ | |||
+ | Le second des effets de symétrie, Reflet miroir, fait une opération similaire à Tourner les copies, mais en utilisant une symétrie de réflexion plutôt que rotative. Son interface a quelques similitudes. | ||
**Whereas rotation takes place around a single point, reflection requires a line; the pop-up offers several different options, including reflection about the horizontal or vertical center line of the page, but by far the most useful option is (at least in my installation) labelled “Free from reflection line” - where I think “free from” is a typo for “free form”. In this mode, a mirror line appears on the page which can be moved using on-canvas handles via the Node tool. The two end handles are used to scale and rotate the line, the center one to move it without changing its orientation. If you choose the “X from middle knot” option in the pop-u,p the line becomes vertical and can be dragged via the center handle to set its distance from the original path; there’s also a corresponding “Y” option for a horizontal mirror line. | **Whereas rotation takes place around a single point, reflection requires a line; the pop-up offers several different options, including reflection about the horizontal or vertical center line of the page, but by far the most useful option is (at least in my installation) labelled “Free from reflection line” - where I think “free from” is a typo for “free form”. In this mode, a mirror line appears on the page which can be moved using on-canvas handles via the Node tool. The two end handles are used to scale and rotate the line, the center one to move it without changing its orientation. If you choose the “X from middle knot” option in the pop-u,p the line becomes vertical and can be dragged via the center handle to set its distance from the original path; there’s also a corresponding “Y” option for a horizontal mirror line. | ||
Ligne 26: | Ligne 51: | ||
The “Discard original path?” option is pretty self-descriptive – it removes the original path leaving only the reflection. If the original and its reflection overlap, the “Fuse paths” checkbox behaves the same as the corresponding one in the Rotate Copies effect: by definition this implies that the original object straddles the mirror line; the “Opposite fuse” option lets you switch which side of the line is kept and which is discarded when the fuse takes place. There’s no option to keep both sides, which seems like something of an oversight.** | The “Discard original path?” option is pretty self-descriptive – it removes the original path leaving only the reflection. If the original and its reflection overlap, the “Fuse paths” checkbox behaves the same as the corresponding one in the Rotate Copies effect: by definition this implies that the original object straddles the mirror line; the “Opposite fuse” option lets you switch which side of the line is kept and which is discarded when the fuse takes place. There’s no option to keep both sides, which seems like something of an oversight.** | ||
- | **Although the Mirror Symmetry effect allows only a single mirror line to be used, you can, of course, add multiple copies of the LPE, each with different settings, in order to mirror an object in multiple directions – such as in both the X and Y directions to create four shapes from the original one. | + | Alors que la rotation |
+ | L' | ||
+ | |||
+ | **Although the Mirror Symmetry effect allows only a single mirror line to be used, you can, of course, add multiple copies of the LPE, each with different settings, in order to mirror an object in multiple directions – such as in both the X and Y directions to create four shapes from the original one. | ||
We’re now down to the last three LPEs that have been introduced with 0.92, and, quite frankly, they don’t warrant their own article, so I’ll finish with a whistle-stop tour of “Bounding Box”, “Ellipse by 5 Points” and “Attach Path”. | We’re now down to the last three LPEs that have been introduced with 0.92, and, quite frankly, they don’t warrant their own article, so I’ll finish with a whistle-stop tour of “Bounding Box”, “Ellipse by 5 Points” and “Attach Path”. | ||
What can I say about the Bounding Box LPE, other than “I couldn’t get it to work”? It’s supposed to let you add the effect to a sacrificial path, then link another path to it – at which point the sacrificial path is replaced by a rectangle that surrounds the linked path. That much seems to work – at least for simple examples – but the new rectangle is also meant to follow any transformations that you perform on the linked path, and in my testing this simply did not happen. The release notes suggest that this effect could be used to add a background color to a PNG export, but I think I’ll stick to drawing a rectangle of my own and putting it at the bottom of the z-order.** | What can I say about the Bounding Box LPE, other than “I couldn’t get it to work”? It’s supposed to let you add the effect to a sacrificial path, then link another path to it – at which point the sacrificial path is replaced by a rectangle that surrounds the linked path. That much seems to work – at least for simple examples – but the new rectangle is also meant to follow any transformations that you perform on the linked path, and in my testing this simply did not happen. The release notes suggest that this effect could be used to add a background color to a PNG export, but I think I’ll stick to drawing a rectangle of my own and putting it at the bottom of the z-order.** | ||
+ | |||
+ | Bien que l' | ||
+ | |||
+ | Nous voici maintenant arrivés aux trois derniers LPE introduits dans la 0.92 et, très franchement, | ||
+ | |||
+ | Que puis-je dire d' | ||
**The Ellipse By 5 Points effect has no UI whatsoever. All it does is replace your input path with an ellipse that passes through the first five points of your path. It has no effect if your path has less than five points – or they’re arranged in a way that can’t form an ellipse – and it simply ignores any beyond the first five. I’m sure it will be useful to someone, but if you just want an ellipse in your drawing and don’t have a mathematical requirement for it to pass through five specific points, it’s more efficient to simply draw one with the Ellipse tool and then size and rotate it as necessary. | **The Ellipse By 5 Points effect has no UI whatsoever. All it does is replace your input path with an ellipse that passes through the first five points of your path. It has no effect if your path has less than five points – or they’re arranged in a way that can’t form an ellipse – and it simply ignores any beyond the first five. I’m sure it will be useful to someone, but if you just want an ellipse in your drawing and don’t have a mathematical requirement for it to pass through five specific points, it’s more efficient to simply draw one with the Ellipse tool and then size and rotate it as necessary. | ||
Ligne 37: | Ligne 71: | ||
The final LPE, Attach Path, lets you join one path to another by creating an additional line segment from the start of the path with the LPE to an arbitrary point on a linked path. You can also do the same from the end of the path, allowing a single path to potentially be attached to two others, should you wish. The position of the join on the linked path is set via the relevant position spinbox; a value of 0.00 will attach to the start of the linked path, whilst 1.00 will attach to the end of the first line segment, 2.00 to the end of the second, and so on. You can use fractional values as well, so that 2.50 would connect your line to a point halfway along the third segment of the linked path. These positions can also be set via on-canvas handles with the Node tool active. | The final LPE, Attach Path, lets you join one path to another by creating an additional line segment from the start of the path with the LPE to an arbitrary point on a linked path. You can also do the same from the end of the path, allowing a single path to potentially be attached to two others, should you wish. The position of the join on the linked path is set via the relevant position spinbox; a value of 0.00 will attach to the start of the linked path, whilst 1.00 will attach to the end of the first line segment, 2.00 to the end of the second, and so on. You can use fractional values as well, so that 2.50 would connect your line to a point halfway along the third segment of the linked path. These positions can also be set via on-canvas handles with the Node tool active. | ||
The new line segments can be curved at either end via on-canvas handles or the relevant Angle and Distance fields in the UI. To make the lines straight, set the distances to zero (it would be nice if a future release of Inkscape added shortcut buttons to do this for you).** | The new line segments can be curved at either end via on-canvas handles or the relevant Angle and Distance fields in the UI. To make the lines straight, set the distances to zero (it would be nice if a future release of Inkscape added shortcut buttons to do this for you).** | ||
+ | |||
+ | L' | ||
+ | |||
+ | Le dernier LPE, Joindre un chemin, vous permet de joindre un chemin à un autre en créant un segment de ligne supplémentaire du début de votre chemin du LPE à un point arbitraire du chemin lié. Vous pouvez aussi faire de même à partir de la fin du chemin, permettant à un seul chemin d' | ||
**This effect provides a workaround to another missing feature from SVG – the ability to have a path with a branch in it. By attaching paths together with this LPE, the connections will be maintained even if the original or linked paths are transformed or edited, making this a potentially useful effect for diagrams such as family trees.** | **This effect provides a workaround to another missing feature from SVG – the ability to have a path with a branch in it. By attaching paths together with this LPE, the connections will be maintained even if the original or linked paths are transformed or edited, making this a potentially useful effect for diagrams such as family trees.** | ||
+ | |||
+ | Cet effet fournit une solution de contournement à un autre effet SVG manquant : la possibilité d' | ||
issue129/inkscape.1517385860.txt.gz · Dernière modification : 2018/01/31 09:04 de d52fr