Inkscape.org
Beginners' Questions Interpolation between two pattterns in fill
  1. #1
    Jacob Frost Jacob Frost @JGFrost

    Hi all! First post from a relatively new user, so apologies for any oversights. Happy to add any relevant info.

    I am wondering if there is a way to fill a shape or object in a way that would create a "gradient" or interpolation between two or more patterns (not sure if that is the correct term). I have attached an example of what I am trying to do that I drew by hand: basically, filling a shape with lines in such a way that the lines gradually transition between solid lines, dashes, and dots.

    I have read through the tutorials and searched online for instructions on how to do this, but have not yet found any matches. I know about the interpolation extension, but I don't believe that works for fills? I also read about masks to create a gradient between a pattern and solid color. I don't think this can do what I'm trying to (although I could be wrong).

    Background info: I'm on Windows 11, using Inkscape version 1.3.2 (which I believe was updated from a previous version, which I obtained from the Inkscape website).

    Screenshot 2025 09 29 132407
  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    Here's my attempt.

    [Edit > Clone > Create Tiled Clones...] to create the blue and red paths.
    [Extensions > Generate from Path > Interpolate Between Paths] to create the gradient.
    Clones to repeat the gradient.
    [Edit > Object > Clip > Set Clip] to simulate a fill pattern.

    I'm not happy with this. Maybe it achieves the visual goal but it's clunky.

    Interpolated Pattern 1
  3. #3
    karliss karliss @karliss

    You can create multiple copies of object with different fill patterns and then use  mask (based on gradient) to blend between the versions with different patterns.

  4. #4
    Jacob Frost Jacob Frost @JGFrost

    Thanks for the suggestions, Paddy_CAD and karliss. I will give them both a try tomorrow.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Interpolation between two pattterns in fill