Scratchpad clippingtutorial

From Inkscape Wiki
Revision as of 02:06, 27 June 2007 by Ryanlerch (talk | contribs) (started clipping section...)
Jump to navigation Jump to search
here is the tutorial scratchpad for the Clipping/masking/patterns tutorial. When this gets to a level of "completeness" it will be converted into docbook xml format and commited to the SVN.

On images: please upload SVG format images. However, the PNG thumbs are not working properly on the wiki, so just provide a link to the uploaded SVG on the wiki.


Clipping, Masking and Patterns


ryan lerch, ryanlerch at gmail dot com


This tutorial covers the usage of the clip and mask functions in inkscape, as well as how to create, apply and edit patterns to fills and strokes.



The clip function in inkscape allows an object or a group of objects to be clipped(cropped) so that only parts of the elements are visible. Clipping can be applied to any object (including linked and imbedded bitmaps.)

The easiest way to understand clipping is to see it in action. Take the following assortment of objects:

Now, place another object on top of all the others. This is what we are using for our clipping object. Note that the z-order of the clipping object is important, as Inkscape takes the top-most object as the clipping object. Also note that the style(fill, stroke, opacity etc) of the object is irrelevant, all that is used when clipping is the shape of the object.

The next step is to select all the objects that you want clipped and the clipping object, and in the menus go to object > clip > set. The result is:

As you can see, only the parts of the objects that were inside the bounds of the clipping object are visible now.