Author Topic: Clipping to lineart  (Read 6013 times)

February 14, 2015, 05:44:05 AM
Read 6013 times

atmycrossroads

  • Newbie

  • Offline
  • *

  • 1
Hello all,

New member here with what I hope is a quick simple question (one of the reasons I posted it in the Basic section of the forum).

It is possible to use lineart as a clipping path? Some bitmap painting applications have a feature that allows you to lock the alpha of a layer based on a layer above or below it. This keeps you from "painting outside the lines". Can this be replicated in Inkscape?

Example.
On my layer I have my lineart created using paths...Ive applied the Power stroke LPE to the path and tweaked the width nodes to get the right look to the lineart. Now I select the lineart and join the paths altogether into one object.
Below the lineart object (but on the same layer of course) are my colors, some of which are outside the lineart.
Can I duplicate the new lineart object, select everything and then do Clip Set so that only the color "within" the lineart is visible?

I hope this makes sense. Im at work right now so I dont have access to Inkscape

February 14, 2015, 10:44:51 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
 :w1:

As long as the lines of the lineart are vector paths, they can be used as a clipping path.

I'm not sure if paths which have any LPEs applied would work, but probably.  I'll test....  Well no, that doesn't seem to work.  But the solution should be fairly simple.

Duplicate the path that you want to use as a clipping path, and remove the path effects.  Once it's a regular path, it should work as a clipping path.

Since we don't have access to the SVG file, or know enough about the file, I'm not sure about this.  But it sounds like it might be possible to avoid having to use clipping....assuming it's just one color.  (And it's always better to use as little fancy stuff as possible, if you have a choice.)  If you applied your color using the Paint Bucket tool, and it overlaps the lineart, maybe you don't have to use clipping, to make it fit.

After you have combined all your paths together (the ones you want to use for a clipping path) and it's now a single closed path, you can just use a regular fill.  Select the path, and either click a color from the palette, or create one using Fill and Stroke dialog (or choose one from an imported raster image, using Dropper tool).

However, if the colors that you want to clip are more than 1 color, clipping might end up being the best solution.

Let us know how it goes  :D
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 14, 2015, 12:37:43 PM
Reply #2

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hello there,

Masking is what you are looking for.
Basically.

But as it's not that well supported -saving the work to pdf may fail. Better try to make a clipping object of the line art.


By line art, I assume you have open paths with no fills but stroke. Only masking can work with that, so if you need it for printing, you may need to convert the strokes to paths, and make a union of the shapes and use that as a clipping object.
(Masking can be done with a group of objects of any kind.)

Important reading:
clipping and masking

February 14, 2015, 01:52:53 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I don't quite follow what you're thinking Lazur.  It doesn't sound like atmycrossroads wants to create any kind of shading or bluring, but simply wants to keep colors from going outside the lineart lines.

Since we've apparently read the same message, and come away with 2 different ideas, we may need to see the SVG file, or at least a screenshot, showing what you're working on.

Anyway, let us know what happens  :D
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 14, 2015, 02:16:44 PM
Reply #4

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Here is what I was thinking about.
Let that  :spir: represent the lineart.

February 14, 2015, 02:49:15 PM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, I'm not a sketch artist, but I used ellipses to draw a crude stick man.  This is what I thought was lineart.  In the thin areas of the lineart, the color extends beyond the lines, and needs to be clipped away.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 14, 2015, 02:58:43 PM
Reply #6

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hmm yes, that's something different.
Line art can cover alot of things.











Someone may remember this one:




February 14, 2015, 03:34:24 PM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
 :ot1:
Oh, that's delightful!  How many videos are there?  Because the end of that one, automatically started another one!
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 14, 2015, 03:41:49 PM
Reply #8

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
 :ot1: there are 90 episodes
http://en.wikipedia.org/wiki/La_Linea_%28TV_series%29 :ot1:


Edit:
Quote (selected)
Even though the episodes are numbered up to 225, there are, in fact, only 90 La Linea episodes. The 1971 series had 8 (4 min) episodes, the 1978 series had 56 (101-156), and the 1986 series had 26 (200-225).

February 14, 2015, 03:48:03 PM
Reply #9

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
more than that -- I skipped ahead and saw #127!

I could watch those all day  :D
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann