Outils pour utilisateurs

Outils du site


issue221:inkscape

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
issue221:inkscape [2025/09/30 11:26] d52frissue221:inkscape [2025/09/30 19:13] (Version actuelle) andre_domenech
Ligne 8: Ligne 8:
  
 The first new control here is a numeric input to adjust the rotation of the gradient. Setting it to 45°, for example, does exactly what you would expect it to.** The first new control here is a numeric input to adjust the rotation of the gradient. Setting it to 45°, for example, does exactly what you would expect it to.**
 +
 +Ce mois-ci, je vais commencer par examiner quelques améliorations mineures, mais utiles, apportées à l'éditeur de dégradés par Inkscape 1.4. La première chose à faire est donc de créer un objet avec un dégradé…
 +
 +J'ai appliqué un dégradé uniquement au remplissage, mais les nouvelles fonctionnalités sont également disponibles pour les contours avec un dégradé. Dans ce cas, le dégradé va du rouge au jaune et de gauche à droite. En SVG, c'est la direction par défaut, avec 0 ° vers la droite de l'objet, et les angles augmentent dans le sens des aiguilles d'une montre à partir de là. N'oubliez pas, ce sera important.
 +
 +En pratique, comme vous pouvez le constater, il y a également une fine section bleue au milieu du dégradé. Je l'ai incluse simplement pour que les changements d'orientation soient plus clairs dans les captures d'écran suivantes, mais pour simplifier, je vais l'ignorer et continuer comme s'il s'agissait d'un simple dégradé rouge-jaune.
 +
 +En ouvrant la boîte de dialogue « Fond et contour », on retrouve globalement la même disposition que dans les versions précédentes d'Inkscape, mais avec de nouvelles commandes en haut à droite (encadrées en rouge).
 +
 +La première nouvelle commande est une entrée numérique permettant d'ajuster la rotation du dégradé. La régler à 45 °, par exemple, produit exactement le résultat escompté.
 +
  
 **Remember that the blue line runs through the middle of the gradient, perpendicular to the gradient direction. Our 45° angle, therefore, runs from top-left to bottom-right. Of course you can set any other angle you wish to in this field but, disappointingly, there are no presets available when right-clicking. One useful feature of Inkscape is its presentation of sensible presets associated with a lot of other input fields, but it’s something that seems to be increasingly falling by the wayside with each new field added to the application. It would be handy for this field to offer a list of presets at 15° angles across the available range but, as it stands, you’ll just have to type them in yourself. **Remember that the blue line runs through the middle of the gradient, perpendicular to the gradient direction. Our 45° angle, therefore, runs from top-left to bottom-right. Of course you can set any other angle you wish to in this field but, disappointingly, there are no presets available when right-clicking. One useful feature of Inkscape is its presentation of sensible presets associated with a lot of other input fields, but it’s something that seems to be increasingly falling by the wayside with each new field added to the application. It would be handy for this field to offer a list of presets at 15° angles across the available range but, as it stands, you’ll just have to type them in yourself.
Ligne 14: Ligne 25:
  
 If you want to change the value in 1° increments there are plus and minus buttons – for smaller or larger increments you’ll need to do some typing. You can also focus the field and scroll your mouse wheel for the same effect – but, again, only in 1° steps. It would have been useful to switch to 10° steps with the Shift key held, or 0.1° steps for Ctrl, but that level of coarse and fine control hasn’t been implemented.** If you want to change the value in 1° increments there are plus and minus buttons – for smaller or larger increments you’ll need to do some typing. You can also focus the field and scroll your mouse wheel for the same effect – but, again, only in 1° steps. It would have been useful to switch to 10° steps with the Shift key held, or 0.1° steps for Ctrl, but that level of coarse and fine control hasn’t been implemented.**
 +
 +N'oubliez pas que la ligne bleue traverse le milieu du dégradé, perpendiculairement à sa direction. Notre angle de 45 ° s'étend donc du coin supérieur gauche au coin inférieur droit. Vous pouvez bien sûr définir l'angle de votre choix dans ce champ, mais malheureusement, aucun préréglage n'est disponible lors d'un clic droit. Une fonctionnalité utile d'Inkscape est la présentation de préréglages pertinents associés à de nombreux autres champs de saisie, mais cette fonctionnalité semble de plus en plus délaissée à chaque ajout d'un champ. Il serait utile que ce champ propose une liste de préréglages par angles de 15 ° sur la plage disponible, mais pour l'instant, vous devrez simplement les saisir vous-même.
 +
 +Ce champ ne permet pas non plus de saisir des équations simples, contrairement à de nombreuses autres entrées d'Inkscape. L'absence de préréglages serait pardonnable s'il était possible de saisir « 15*5 » et de laisser le programme calculer le résultat, mais ce n'est pas possible ici.
 +
 +Pour modifier la valeur par incréments de 1 °, utilisez les boutons + et -. Pour des incréments plus ou moins importants, vous devrez taper. Vous pouvez également sélectionner le champ et faire tourner la molette de la souris pour obtenir le même effet, mais, là encore, uniquement par incréments de 1 °. Il aurait été utile de passer à des incréments de 10 ° en maintenant la touche Maj enfoncée, ou de 0,1 ° avec la touche Ctrl, mais ces niveaux de contrôle grossier ou précis ne sont pas implémentés.
 +
  
 **For a more interactive approach there is also a new slider, below the numeric input. If you don’t need a precise angle, but just want to adjust it until it looks “right” on the canvas, this might be a better tool. As is the nature of sliders, the exact resolution of each step will change depending on how wide the dialog is. But even with an extremely wide dialog, and therefore a longer slider, the resolution still appears to bottom out at 1° steps. Once again, if you want finer control than that you’ll need to adjust the value in the input box, but I’ll forgive that given that a slider isn’t really the right control for such exacting requirements. **For a more interactive approach there is also a new slider, below the numeric input. If you don’t need a precise angle, but just want to adjust it until it looks “right” on the canvas, this might be a better tool. As is the nature of sliders, the exact resolution of each step will change depending on how wide the dialog is. But even with an extremely wide dialog, and therefore a longer slider, the resolution still appears to bottom out at 1° steps. Once again, if you want finer control than that you’ll need to adjust the value in the input box, but I’ll forgive that given that a slider isn’t really the right control for such exacting requirements.
Ligne 20: Ligne 38:
  
 Dragging the slider to either end is a quick way to initialise the gradient to a base number such that the button cycles through the four cardinal directions.** Dragging the slider to either end is a quick way to initialise the gradient to a base number such that the button cycles through the four cardinal directions.**
 +
 +Pour une approche plus interactive, un nouveau curseur est également disponible sous la saisie numérique. Si vous n'avez pas besoin d'un angle précis, mais souhaitez simplement l'ajuster jusqu'à obtenir un rendu correct sur le canevas, cet outil peut s'avérer plus judicieux. Comme c'est le cas avec les curseurs, la résolution exacte de chaque étape varie selon la largeur de la boîte de dialogue. Cependant, même avec une boîte de dialogue extrêmement large, et donc un curseur plus long, la résolution semble toujours plafonner par paliers de 1 °. Encore une fois, pour un contrôle plus précis, vous devrez ajuster la valeur dans la zone de saisie, mais c'est pardonnable, car un curseur n'est pas vraiment le contrôle adapté à des exigences aussi strictes.
 +
 +À gauche du curseur, un nouveau bouton permet de faire pivoter le dégradé dans le sens des aiguilles d'une montre par paliers de 90 °. En clair, il fait pivoter le dégradé existant de 90 ° supplémentaires à chaque clic ; ainsi, si vous commencez avec un angle de 30 °, il passera à 120 °. Notez que le contrôle de rotation couvre une plage de +/-180°. Un clic supplémentaire sur le bouton ne fera donc pas passer à 210 °, mais à -150 °. De là, un autre clic permet de passer à -60 °, avant qu'un quatrième clic ne ramène à la valeur initiale de 30 °.
 +
 +Faire glisser le curseur vers l'une des extrémités permet d'initialiser rapidement le dégradé à une valeur de base, de sorte que le bouton parcoure les quatre points cardinaux.
 +
  
 **This button is a potentially handy shortcut with one glaring omission: it only rotates clockwise. It’d be more useful still if a Shift-click caused it to rotate anti-clockwise for those times when you overshoot your intended rotation, or know that you specifically want to adjust the value by -90°. **This button is a potentially handy shortcut with one glaring omission: it only rotates clockwise. It’d be more useful still if a Shift-click caused it to rotate anti-clockwise for those times when you overshoot your intended rotation, or know that you specifically want to adjust the value by -90°.
Ligne 28: Ligne 53:
  
 The differences appear when looking at the gradient settings in the Fill & Stroke dialog (below).** The differences appear when looking at the gradient settings in the Fill & Stroke dialog (below).**
 +
 +Ce bouton est un raccourci potentiellement pratique, mais présente une lacune flagrante : il ne tourne que dans le sens horaire. Il serait encore plus utile qu'un clic tout en maintenant la touche Maj enfoncée provoque une rotation dans le sens antihoraire, notamment lorsque vous dépassez la rotation prévue ou que vous souhaitez ajuster la valeur de -90 °.
 +
 +Ce bouton peut notamment servir à inverser l'orientation d'un dégradé de 180 ° ; dans le cas de ma forme d'exemple, il passe du rouge-jaune au jaune-rouge. Cependant, juste à côté du bouton de rotation se trouve un bouton déjà présent dans les versions précédentes, qui inverse le sens du dégradé. Il est évidemment plus judicieux d'utiliser ce bouton en un seul clic plutôt que deux clics, n'est-ce pas ?
 +
 +Dans la grande majorité des cas, l'un ou l'autre bouton fera l'affaire. Cependant, leur fonctionnement diffère techniquement, ce qui peut affecter votre conception si vous partagez des dégradés entre plusieurs objets. Pour illustrer cela, j'ai pris mon carré d'origine et en ai créé deux copies. J'ai ensuite inversé le dégradé sur le premier et l'ai fait pivoter deux fois sur le second. Comme vous pouvez vous y attendre, les deux copies sont identiques.
 +
 +Les différences apparaissent lorsque vous examinez les paramètres de dégradé dans la boîte de dialogue Fond et contour (ci-dessous).
 +
  
 **On the left we can see that the ‘Reverse’ button has done exactly that – it’s reversed the order of the color stops entirely. The gradient that had previously run from red to yellow now runs from yellow to red, but with a rotation of 0°. The ‘Rotate’ version, on the right, maintains the same stop order as the original object, but with a rotation of 180°. **On the left we can see that the ‘Reverse’ button has done exactly that – it’s reversed the order of the color stops entirely. The gradient that had previously run from red to yellow now runs from yellow to red, but with a rotation of 0°. The ‘Rotate’ version, on the right, maintains the same stop order as the original object, but with a rotation of 180°.
Ligne 34: Ligne 68:
  
 Notice that there are now two gradients for our three objects. The first is shared by two objects (as indicated by the number in the ‘#’ column) – our original, and the copy with the rotated gradient. The second was created as soon as the ‘Reverse’ button was clicked, and is only used by one object.** Notice that there are now two gradients for our three objects. The first is shared by two objects (as indicated by the number in the ‘#’ column) – our original, and the copy with the rotated gradient. The second was created as soon as the ‘Reverse’ button was clicked, and is only used by one object.**
 +
 +À gauche, on peut voir que le bouton « Inverser » a eu exactement cet effet : il a complètement inversé l'ordre des dégradés. Le dégradé, qui allait auparavant du rouge au jaune, va maintenant du jaune au rouge, mais avec une rotation de 0 °. La version « Rotation », à droite, conserve le même ordre de dégradé que l'objet d'origine, mais avec une rotation de 180 °.
 +
 +Dans les Préférences d'Inkscape (Édition > Préférences), dans le panneau Outils > Outil Dégradé, se trouve l'option « Interdire le partage des définitions de dégradé ». Si cette option est cochée, vous ne risquez pas d'être affecté par la différence entre ces deux approches. En pratique, cette option force Inkscape à dupliquer automatiquement votre dégradé lorsque des modifications affectent plusieurs objets. Une modification de la rotation du dégradé est acceptable, car elle est définie au moment de l'utilisation du dégradé, ce qui permet à deux objets différents de partager une même définition de dégradé, mais de l'afficher avec des orientations différentes. Cependant, l'utilisation du bouton « Inverser » modifie la définition du dégradé en raison de la modification de l'ordre des points. Inkscape crée une autre copie du dégradé, visible en ouvrant la fenêtre contextuelle « Dégradé » de la boîte de dialogue Remplissage et contour.
 +
 +Remarque : nos trois objets possèdent désormais deux dégradés. Le premier est partagé par deux objets (comme l'indique le numéro dans la colonne « # ») : l'original et la copie avec le dégradé pivoté. Le second a été créé dès que le bouton « Inverser » a été cliqué et n'est utilisé que par un seul objet.
 +
  
 **The problems arise when you do want to share gradients. Consider that you might want that yellow changed to green throughout your entire drawing – perhaps due to a change of corporate style or branding. As I discussed last time, you can’t use swatches as gradient color stops, so it’s not possible to define your gradient in terms of named swatches that you can edit in a single place. Instead you’re faced with tracking down and changing the color in every gradient separately. **The problems arise when you do want to share gradients. Consider that you might want that yellow changed to green throughout your entire drawing – perhaps due to a change of corporate style or branding. As I discussed last time, you can’t use swatches as gradient color stops, so it’s not possible to define your gradient in terms of named swatches that you can edit in a single place. Instead you’re faced with tracking down and changing the color in every gradient separately.
Ligne 40: Ligne 81:
  
 Using the rotate button a couple of times, however, does not affect the original. Let’s create another copy, and flip that one back to red-yellow using this technique (above).** Using the rotate button a couple of times, however, does not affect the original. Let’s create another copy, and flip that one back to red-yellow using this technique (above).**
 +
 +Les problèmes surviennent lorsque vous souhaitez partager des dégradés. Imaginez que vous souhaitiez changer le jaune en vert sur l'ensemble de votre dessin, par exemple en raison d'un changement de charte graphique ou de marque. Comme je l'ai expliqué précédemment, les échantillons ne peuvent pas être utilisés comme points de dégradé ; il est donc impossible de définir votre dégradé à partir d'échantillons nommés, modifiables en un seul endroit. Vous devez alors rechercher et modifier la couleur de chaque dégradé séparément.
 +
 +Désactiver cette option dans la boîte de dialogue Préférences empêche Inkscape de créer des dégradés supplémentaires à la demande, mais cela entraîne des problèmes. Cette fois, dès que vous inversez le dégradé sur la première copie, celui de l'original change également de direction, ce qui produit deux dégradés jaune-rouge, sans aucune trace du rouge-jaune d'origine. Nous avons demandé à Inkscape de partager la définition du dégradé, donc une modification de l'ordre des points de dégradé (due au bouton « Inverser ») a affecté nos deux objets.
 +
 +Cependant, utiliser deux fois le bouton de rotation n'affecte pas l'original. Créons une autre copie et repassons-la en rouge-jaune grâce à la technique ci-dessus.
 +
  
 **Now there’s only a single gradient used across three objects even though, visually, we have them running in two different directions. Changing a color stop now affects all the objects using that gradient, as with the yellow-to-green swap I suggested earlier (below). **Now there’s only a single gradient used across three objects even though, visually, we have them running in two different directions. Changing a color stop now affects all the objects using that gradient, as with the yellow-to-green swap I suggested earlier (below).
Ligne 46: Ligne 94:
  
 Note, however, that disabling this preference means it’s easy to inadvertently change the gradient of another object when you didn’t mean to. For example, if you absent-mindedly use the ‘Reverse’ button, you may find that an object that’s currently off-screen and out of sight also has its gradient reversed. For this reason, unless you really, really want to share gradients, and you understand the implications of doing so, I recommend most users leave this setting checked, and just accept that you may have a bit more work to do if you genuinely do want to change a single stop color across multiple objects.** Note, however, that disabling this preference means it’s easy to inadvertently change the gradient of another object when you didn’t mean to. For example, if you absent-mindedly use the ‘Reverse’ button, you may find that an object that’s currently off-screen and out of sight also has its gradient reversed. For this reason, unless you really, really want to share gradients, and you understand the implications of doing so, I recommend most users leave this setting checked, and just accept that you may have a bit more work to do if you genuinely do want to change a single stop color across multiple objects.**
 +
 +Il n'y a désormais qu'un seul dégradé utilisé pour trois objets, même si, visuellement, ils s'étendent dans deux directions différentes. La modification d'un dégradé affecte désormais tous les objets utilisant ce dégradé, comme pour le passage du jaune au vert suggéré précédemment (ci-dessous).
 +
 +L'ensemble de notre document a été mis à jour pour correspondre à la nouvelle identité visuelle (bien que peu élégante), sans avoir à modifier une multitude de dégradés sur de nombreux objets.
 +
 +Notez cependant que la désactivation de cette préférence peut facilement modifier par inadvertance le dégradé d'un autre objet. Par exemple, si vous utilisez involontairement le bouton « Inverser », vous constaterez peut-être qu'un objet actuellement hors écran et hors de vue voit également son dégradé inversé. C'est pourquoi, à moins que vous ne souhaitiez absolument partager des dégradés et que vous en compreniez les implications, je recommande à la plupart des utilisateurs de laisser ce paramètre coché et d'accepter que vous ayez peut-être un peu plus de travail si vous souhaitez réellement modifier une seule couleur de dégradé sur plusieurs objets.
 +
  
 **If you just want to reverse a gradient, therefore, using the ‘Rotate’ button a couple of times is a better option than the ‘Reverse’ button. It won’t result in an additional gradient being created, regardless of the state of this setting, and will give you the same visual result. **If you just want to reverse a gradient, therefore, using the ‘Rotate’ button a couple of times is a better option than the ‘Reverse’ button. It won’t result in an additional gradient being created, regardless of the state of this setting, and will give you the same visual result.
  
 So does that mean that the ‘Reverse’ button is completely useless? Not at all! Everything I’ve written above applies only to linear gradients. When working with radial gradients the Orientation section of the Fill & Stroke dialog is disabled entirely, so if you want to flip your gradient from being red in the center and yellow at the edge to the opposite style, you have no choice but to use the ‘Reverse’ button, even though it does mean creating a second gradient. ** So does that mean that the ‘Reverse’ button is completely useless? Not at all! Everything I’ve written above applies only to linear gradients. When working with radial gradients the Orientation section of the Fill & Stroke dialog is disabled entirely, so if you want to flip your gradient from being red in the center and yellow at the edge to the opposite style, you have no choice but to use the ‘Reverse’ button, even though it does mean creating a second gradient. **
 +
 +Si vous souhaitez simplement inverser un dégradé, il est préférable d'utiliser le bouton « Rotation » deux fois plutôt que le bouton « Inverser ». Cela ne créera pas de dégradé supplémentaire, quel que soit l'état de ce paramètre, et vous obtiendrez le même résultat visuel.
 +
 +Le bouton « Inverser » est-il donc totalement inutile ? Absolument pas ! Tout ce que j'ai expliqué ci-dessus ne s'applique qu'aux dégradés linéaires. Avec les dégradés radiaux, la section « Orientation » de la boîte de dialogue « Fond et contour » est entièrement désactivée. Ainsi, si vous souhaitez inverser votre dégradé (rouge au centre et jaune sur les bords) vers le style opposé, vous n'avez d'autre choix que d'utiliser le bouton « Inverser », même si cela implique la création d'un second dégradé.
 +
  
 **The fact that the Orientation section is disabled for radial gradients is, itself, a little odd. Although it serves no purpose when the gradient is completely circular, if you extend one of the two arms your gradient becomes elliptical. The angle of the ellipse can be altered by dragging the end handle of one of the arms, so it’s a shame that the orientation controls don’t work for this situation. **The fact that the Orientation section is disabled for radial gradients is, itself, a little odd. Although it serves no purpose when the gradient is completely circular, if you extend one of the two arms your gradient becomes elliptical. The angle of the ellipse can be altered by dragging the end handle of one of the arms, so it’s a shame that the orientation controls don’t work for this situation.
  
 The addition of these new controls is another case where a small, seemingly insignificant change to the UI opens up a can of worms when you begin to dig into what’s actually happening in your SVG file. I think the new Orientation controls are definitely a positive addition (despite the lack of shortcuts, arithmetic and support for radial gradients), but it’s worth being aware of the underlying details if your needs fall outside of ‘normal’ use.** The addition of these new controls is another case where a small, seemingly insignificant change to the UI opens up a can of worms when you begin to dig into what’s actually happening in your SVG file. I think the new Orientation controls are definitely a positive addition (despite the lack of shortcuts, arithmetic and support for radial gradients), but it’s worth being aware of the underlying details if your needs fall outside of ‘normal’ use.**
 +
 + La désactivation de la section « Orientation » pour les dégradés radiaux est en soi un peu étrange. Bien qu'inutile lorsque le dégradé est complètement circulaire, si vous étendez l'un des deux bras, votre dégradé devient elliptique. L'angle de l'ellipse peut être modifié en faisant glisser la poignée d'extrémité de l'un des bras ; il est donc regrettable que les commandes d'orientation ne fonctionnent pas dans ce cas.
 +
 +L'ajout de ces nouvelles commandes est un autre exemple où une modification mineure, apparemment insignifiante, de l'interface utilisateur peut semer la pagaille lorsqu'on commence à analyser le fonctionnement de son fichier SVG. Je pense que les nouvelles commandes d'orientation sont un ajout positif (malgré l'absence de raccourcis, de calcul et de prise en charge des dégradés radiaux), mais il est utile de connaître les détails sous-jacents si vos besoins dépassent le cadre d'une utilisation « normale ».
  
issue221/inkscape.1759224379.txt.gz · Dernière modification : 2025/09/30 11:26 de d52fr