Install Inkscape on your laptop.
Install git
Clone the CoDrawing project from GitHub:
> git clone https://github.com/charlyoleg/CoDrawing
Look the drawings located in the directory studio/ with Inkscape or with a browser such as FireFox.
Choose a drawing that you want improve
Create a new SVG file in the directory studio/library/ with Inkscape and draw a new character or new small scene.
Add a link in the main drawing to your new piece of work (check Inkscape tips and tricks)
Commit your contribution
The native format of Inkscape is SVG. A SVG document can embed an external picture with the format PNG or SVG. Inkscape supports this SVG feature. But the Inkscape GUI only propose to create an dynamic picture link to PNG file. So you need to hack a little to create an dynamic picture link to SVG file. Let’s day, you want to create a link to the SVG file embed.svg into the main SVG document main.svg:
with Inkscape, create main.svg
create embed.svg and export the page as embed.png:
Inkscape menu > File > Export Bitmap... In the *Export Bitmap* window, Export Area: Select *page* Choose the filename Exportwith Inkscape, open main.svg and import the embed.png:
Inkscape menu > File > Import... In the *Import* window, Select the file *embed.png* In the pop-up window *png GDK pixbuf Input*, Link or embed image: Chose *link*save the document main.svg and quit Inkscape
with a text editor, open main.svg
find the line containing the path to embed.png
change this path to embed.svg
save the modification and re-open main.svg with Inkscape
You see embed.svg inside main.svg! main.svg contains only a link to embed.svg. If you modify embed.svg, after re-opening main.svg, you will get the modifications:)
Notice that, if you directly import embed.svg with the Inkscape GUI, the contain of the file embed.svg is copied into the file main.svg. The modification of embed.svg won’t be seen from main.svg.
We mostly rely on Inkscape to create the SVG files. So we don’t really need to know about the SVG syntax. But because we hack a little the SVG documents with a text editor, we need some hints:
SVG comments:
<!-- this is a comment -->absolute path to an external SVG file:
xlink:href="file:///home/roberto/GitHubStuff/CoDrawing/studio/library/wild_pig.svg"relative path to an external SVG file:
xlink:href="library/wild_pig.svg"
The page of a SVG document defines the official border of the drawing. You can draw inside and outside the page. The limits of the page are you when you export the document and you select page. Also, when you create a dynamic link to a SVG document, the coordinates of the page are use to crop and place the imported picture. Usually, you use the space around the page to make draft and write comments. After drawing an object, you usually want to resize the page to a small surrounding around this object. You can select the object and resize the page to it but you want get any space between the enveloping rectangle of the object and the page. Some people prefer adding some margins between the object and the page borders. If you want such margin, follow this procedure:
draw a rectangle with a transparent fill where you want to get the page
select this rectangle and resize the page:
Inkscape top menu > File > Document Properties...
In the *Document properties* window,
Unfold *Resize page to content...*
click on *Resize page to drawing or selection*
Delete or move the rectangle outside the page
To improve the efficiency and the accuracy of the licensing, when you create a new file, add in comment of the file (namely outside the page in a SVG) the following line:
Copyright YYYY YourName CC BY-SA 3.0
With YYYY the current year and YourName your real name, artist name or pseudo.
If you modify an existing file, add the current year if it is not yet present and add your name and pseudo:
Copyright 2012, 2013 Tom Grant, Lucas Spring CC BY-SA 3.0
The script scr/drawing_evolution.py will create a series of picture that show you easily the evolution of a drawing.