Inkscape.org
Beginners' Questions 2-Colour Gradient border around Bottle
  1. #1
    Codename_Newbie Codename_Newbie @Codename_Newbie

    Hi all,

    I'm working on a project. I would like to add a Infra-red heat scan effect around a picture of a bottle. 

    The bottle image can be found here, https://d34kame2p3gj5k.cloudfront.net/media/uploads/2018/09/05155045/10017-b18-14265.jpg

    For the 2-Colour Gradient border , https://www.w3schools.com/cssref/gradient_linear.png. Ideally I want it to go from red to green then fade into white.

    I'd also would like to isolate the border effect to only the bottom half of the bottle.

    Any suggestions on how to get this done is welcome.

    Thanks in advance,

    Codename_Newbie

  2. #2
    brynn brynn @brynn
    *

    Welcome to the forum!

    I'm not actually sure what an infra red heat scan looks like.  Can you show an example?

    That looks like a 3 color gradient to me -- red to yellow to green.  So you would want red - yellow - green - white?

    I'm guessing you'll need to use the Gradient Mesh tool for this.

    Oh ok, I did a search.  So you would want red to be where the bottle is hottest?  That would mean red on the outside and white in the inside, right?  Because that bottle appears to be frosty, to me.  However, if it holds a hot liquid, I guess it would be the opposite.

    Yeah, I'd say use the gradient mesh.  Trace a path on top of the bottle (with Pen or Pencil tool) where you want the color to go, then switch to the Gradient Mesh tool, and fill it with the mesh.  Then start assigning colors to the nodes or gradient stops (I'm not sure what they're called for the mesh).  Then move them and tweak them until it looks right.

  3. #3
    Codename_Newbie Codename_Newbie @Codename_Newbie

    This is an lazy example of what I'm trying to achieve, https://imgur.com/a/UoVI4Ww

    The gradient colours to match the shape of the bottle like they are being emitted from the bottle.

    Will the gradient mesh tool still help me acheive this?

  4. #4
    brynn brynn @brynn
    *

    So you want it generally like that, except with gradients rather than stripes or bands of color?  Something like the attached?

    Or do you want the edges to be shaped like the edges of the bottle?

    For my screenshot, I just drew an oval using Ellipse tool, and filled it with a radial gradient (not using Gradient Mesh, but regular Gradient tool).  But if you want it shaped like the bottle, and the gradient also shaped like the bottle, you would have to use Gradient Mesh tool.

    Edit

    Note that I had to clip away the white background of the bottle JPG.  Clipping:  http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Clip.html

    Gradient tool:  http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Attributes-Fill-Stroke.html#Attributes-Gradients

    I don't know of any tutorial for the Gradient Mesh tool, but once you understand a regular gradient, you should be able to sort out the Gradient Mesh.  It's all very similar.

    Ir
Inkscape Inkscape.org Inkscape Forum Beginners' Questions 2-Colour Gradient border around Bottle