Blends mode dans inkscape

Les filtres de blend ont été ajouté dans Inkscape SVN, un exemple est donné dans les sources, mais pas installé dans le répertoire d’exemple pour le moment. Voici un export PNG du résultat :

Filtres blend SVG avec inkscape
Au moins 5 modes sont gérés. sur l’image de gauche à droite et de haut en bas.

sans filtre - normal
multiply (produit) - screen (écran)
darken (assombri) - ligthen (éclairci).

Pour utiliser un filtre, il n’y a pour le moment pas d’interface, mais c’est un des projets du « Google summer of code ». Il faut donc éditer le fichier svg manuellement, ou passer par l’éditeur XML intégré à Inkscape (maj+ctrl+X).

dans le style du chemin, il faut ajouter un champs ‘filter’ :
filter:url(#filter2888);

et dans les définitions <svg:defs>, ajouter une définition de filtre :

    <filter inkscape:collect="always"
       id="filter2888">
      <feblend mode="normal"
         id="feBlend2814"
         in="SourceGraphic"
         in2="BackgroundImage" />
    </filter>

Où bien, dans l’éditeur XML, ajouter un nœud :
svg:filter id="filter2888"

y ajouter un champs
inkscape:collect always

puis y insérer un nœud fils :
svg:feBlend id="feBlend2814"

y ajouter les champs :

in:SourceGraphic
in2:BackgroundImage
mode:normal

Dans les 2 cas, le mode (normal dans les exemples) peut être remplacé par le mode désiré.

This entry was posted on Sunday, June 3rd, 2007 at 22:33 and is filed under Didacticiel, Inkscape. Find similar posts by selecting any of the following tags: . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Comment so far

  1. C’est vraiment le bordel ton blog…

Have your say

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.