Scratchpad cloningtutorial

From Inkscape Wiki
Revision as of 05:41, 28 June 2007 by Ryanlerch (talk | contribs)
Jump to navigation Jump to search
This is a tutorial scratchpad. When this tutorial gets to a level of "completeness" it will be converted into DocBook XML format and commited to SVN.

If you edit or add anything, feel free to add your name to the authors list, so you get credit where credit is due!

Translating this tutorial

Please do not translate this tutorial yet, it is still in the early stages of development and will be modified drastically. Translations can be done once it has been migrated to SVN.


Please upload images in SVG format. If you use text in the illustrations, don't split sentences or phrases into multiple text objects, as this will make a proper translation impossible. Use a flowtext area and leave enough overflow room for languages which require more space to express the same thing. If appropriate, center the text. Please also start your images in the top left corner; don't leave space until the page border.


the automatically generated PNG thumbs are not working properly on this wiki right now, so just provide a link to the uploaded SVG on the wiki. Try to keep the naming of the images similar, but don't worry too much about the image numbering order, that can be resolved later.


Cloning and Tile Clones





Clones provide a way dupicating an object, yet keeping the object's style and shape linked so that any changes to the original are reflected in all the clones.

For example, take the following two stars: the one on the left is the original, the one on the right is the clone. Try selecting the original, and changing the amount of corners on the star or the fill color.

Now both the original and the clone would have changed instantly when you altered the original. Here is the result of adding 5 more corners and changing the fill color to the original:

If attempts are made to change the clone, it will not work, as the clone is still linked to the original.

Creating a Clone

Creating a new clone is easy. Simply select the object that you wish to clone, and choose Edit > Clone > Create Clone. A new clone will appear above the original in the same position.

Unlinking a Clone

If it is required to sever the link between a clone and an original, the clone can be Unlinked. Simply, select the clone and choose Edit > Clone > Unlink Clone. The is now just a normal object with no link to the original.

Changing the Fill and Stroke of a Clone

It is possible to change the fill and stroke of a clone, so that it differs from the original. This is done by setting the fill or the stroke of the original to "undefined". Setting the fill or stroke to undefined is done in the Fill/Stroke dialog box. The undefined fill/stroke type choice is highlighted below:

If the fill/stroke of an original is set to anything other than undefined, then any clones of that object cannot have their fills/strokes altered.

See an example of this below, where the original is the text at the top, and the clones are the colored text and the shadow. Try changing the contents of the text in the original to see the changes of the clones below it:

Tile Clones