Inkscape.org
Beginners' Questions Linear gradient question
  1. #1
    valfodr valfodr @valfodr

    I am new to Inkscape, I need to create a simple linear gradient on a picture I obtained from an automatic vector tracing tool. I'm usingย Inkscape 1.2.2 (b0a8486541, 2022-12-01) on Windows 10. As you can see from the screenshot, the gradient is set from blue to white, but it goes from blue to black for some reason.

    https://i.ibb.co/7NC8QwY/forum-screenshot.png

  2. #2
    Polygon Polygon @Polygonโš–๐ŸŒถ

    "Saturation " is set to "0".

  3. #3
    valfodr valfodr @valfodr

    Set it to 100, no change

  4. #4
    David248 David248 @David248

    On screen, gradient informations are from blue to white, but not on canvas... Some ideas :

    • Can you check the blend mode of your path ?
    • If you change the color of white end of gradient,ย  does it change anything on canvas ?
    • Can you try in rgb color space ?
    • Is your display mode set to normalย ?
    • Is there another onject under your shape ?
  5. #5
    valfodr valfodr @valfodr
    1. Blend mode - Normal
    2. https://i.ibb.co/gJJRYyP/2-colour.png
    3. No change in RGB.
    4. Display mode - Normal
    5. Not really, see here:ย https://i.ibb.co/61H93wS/5-layers.png

    I noticed also that everything seems to be inverted for some reason. When brightness or Alpha goes down, gradient starts to look white on canvas as it probably should

  6. #6
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Other than the colour problem, your screenshot looks normal. Please upload the svg file for us to examine.

  7. #7
    valfodr valfodr @valfodr
    *

    Here it is

  8. #8
    Paddy_CAD Paddy_CAD @Paddy_CAD
    ๐Ÿ‘*

    Did you forget about your little filter experiment? When you play with fire....

    Your file contains 38 filter definitions, 8 of which are active. Each tongue of flame has a colour-invert filter applied. Select all the individual shapes then [Filters > Remove Filters]. You can follow this with [File > Clean Up Document] to delete all unused filter definitions.

  9. #9
    David248 David248 @David248

    Mystery solved ! Good job Paddy_CAD ๐Ÿ˜Ž

    The problem was quite unusual ... I didn't thought about that.

    Note that, as often, status bar gives hints on what's going wrong...

  10. #10
    valfodr valfodr @valfodr

    You're amazing, thanks. I didn't even know about filters, I had used an automated vector tracing tool, who knows why it set all those weird filters...

  11. #11
    valfodr valfodr @valfodr

    You're amazing, thanks. I didn't even know about filters, I had used an automated vector tracing tool, who knows why it set all those weird filters...