Tento návod sa týka základov používania Inkscape. Toto je regulárny dokument Inkscape, ktorý môžete prehliadať, upravovať, kopírovať z neho a ukladať zmany.
Návod Základy pokrýva témy: navigácia na plátne, správa dokumentov, základy nástrojov na úpravu tvarov, techniky výberu, transformácia objektov pomocou výberu, zoskupovanie, nastavenie výplne a ťahu, zarovnanie a vertikálne poradie. V ponuke Pomocníka nájdete ďalšie návody zaoberajúce sa pokročilými témami.
Posúvanie plátna
Je veľa spôsobov ako posúvať (skrolovať) plátno (pracovnú plochu). Skúste kombináciu Ctrl+šípka, čím plátno posuniete pomocou klávesnice. (Skúste to teraz použiť a posunúť sa nižšie v tomto dokumente.) Tiež môžete ťahať plátno pomocou stredného tlačidla myši. Alebo môžete použiť posuvníky okna (stlačením Ctrl+B ich zobrazíte alebo skryjete). Koliesko vašej myši umožňuje zvislé posúvanie; podržaním klávesu Shift pri otáčaní kolieskom môžete posúvať plátno vodorovne.
Približovanie a odďaľovanie
Najjednoduchší spôsob zmeny mierky je pomocou kláves - a + (alebo =). Môžete tiež použiť Ctrl+kliknutie stredným tlačidlom alebo Ctrl+kliknutie pravým tlačidlom pre priblíženie, Shift+kliknutie stredným tlačidlom alebo Shift+kliknutie pravým tlačidlom pre oddialenie alebo otáčanie kolieska myši pri stlačenom Ctrl. Tiež môžete kliknúť do políčka pre zmenu mierky (v pravom dolnom rohu okna dokumentu), napísať presnú hodnotu mierky v % a stlačiť Enter. Tiež máme nástroj Zmena mierky (v paneli nástrojov naľavo), ktorý vám umožní približovanie oblasti tým, že cez ňu potiahnete myšou.
Inkscape si tiež udržiava históriu úrovní priblíženia, ktoré ste počas tejto pracovnej relácie použili. Stlačením tlačidla ` sa vrátite k predchádzajúcej úrovni a stlačením Shift+` prejdete na nasledujúcu.
Nástroje Inkscape
Zvislý panel nástrojov naľavo zobrazuje nástroje Inkscape na kreslenie a úpravy. Vo vrchnej časti okna pod ponukou sa nachádza Panel príkazov s tlačidlami všeobecných príkazov a Panel ovládania nástrojov, ktorý nastavuje špecifické parametre každého nástroja. Stavový panel v dolnej časti okna zobrazuje počas toho ako pracujete užitočné rady a správy.
Množstvo operácií je dostupných vo forme klávesových skratiek. Otvorte Pomocník > Klávesnica a myš a uvidíte kompletnú príručku.
Vytváranie a spravovanie dokumentov
Na vytvorenie nového prázdneho dokumentu použite alebo stlačte Ctrl+N. Na otvorenie existujúceho SVG dokumentu použite (Ctrl+O). Na uloženie použite (Ctrl+S) alebo (Shift+Ctrl+S) na uloženie pod novým názvom. (Inkscape môže ešte stále byť nestabilný, preto radšej ukladajte často!)
Inkscape používa pre svoje súbory formát SVG (Scalable Vector Graphics). SVG je otvorený štandard, ktorý široko podporujú grafické aplikácie. SVG súbory sú založené na XML a je ich možné upravovať akýmkoľvek textovým alebo XML editorom (teda okrem Inkscape). Popri SVG Inkscape dokáže importovať a exportovať niekoľko ďalších formátov (EPS, PNG).
Inkscape otvára pre každú dokument samostatné okno. Môžete sa medzi nimi pohybovať pomocou vášho správcu okien (napr. pomocou Alt+Tab) alebo môžete použiť skratku Inkscape - Ctrl+Tab, ktorou sa dajú dokola prepínať jednotlivé otvorené okná dokumentov. (Teraz vytvorte nový dokument a aby ste si to vyskúšali, prepínajte sa medzi ním a týmto dokumentom.)
Vytváranie tvarov
Je čas na nejaké pekné tvary! Kliknite na nástroj Obdĺžnik na paneli nástrojov (alebo stlačte F4) a potom kliknite a ťahajte, buď v novom dokumente alebo priamo tu:
Ako môžete vidieť, štandardné obdĺžniky sú modré s čiernym ťahom (obrysom) a čiastočne priesvitné. Nižšie uvidíme ako to zmeniť. Pomocou ďalších nástrojov je tiež môžete vytvárať elipsy, hviezdy a špirály.
Tieto nástroje sa spoločne nazývajú nástroje tvarov. Každý tvar, ktorý vytvoríte, bude mať jeden alebo viac páčok v tvare diamantu; skúste nimi ťahať, aby ste videli ako tvar reaguje. Panel Ovládanie pre nástroj tvar je ďalším spôsobom ako meniť tvar; toto ovládanie ovplyvňuje momentálne vybrané tvary (napr. tie, ktoré majú páčky) a zároveň nastavujú štandardné hodnoty, ktoré sa použijú na novo vytvorené tvary.
Ak chcete vrátiť vašu poslednú činnosť, stlačte Ctrl+Z. (Alebo ak si to znova rozmyslíte, môžete opakovať vrátenú činnosť pomocou Shift+Ctrl+Z.)
Posúvanie, zmena veľkosti, otáčanie
Najčastejšie používaným nástrojom v Inkscape je nástroj Výber. Kliknite na najvrchnejšie tlačidlo (má na sebe symbol šípky) na paneli nástrojov alebo stlačte F1 alebo medzerník. Teraz môžete vybrať ktorýkoľvek objekt na plátne. Kliknite dolu na obdĺžnik.
Uvidíte okolo objektu páčky v tvare šípiek. Teraz môžete:
-
Posúvať objekt ťahaním. (Držaním Ctrl obmedzíte pohyb na vertikálny a horizontálny posun.)
-
Meniť veľkosť objektu ťahaním ktorejkoľvek páčky. (Držaním Ctrl zachováte pôvodný pomer výšky/šírky.)
Teraz znova kliknite na obdĺžnik. Páčky sa zmenia. Teraz môžete:
-
Otáčať objekt ťahaním páčok rohov. (Držaním Ctrl obmedzíte otáčanie na kroky po 15 stupňoch. Ťahaním značky kríža zmeníte stred otáčania.)
-
Skosiť (nakloniť) objekt ťahaním páčok mimo rohov. (Držaním Ctrl obmedzíte skosenie na kroky po 15 stupňoch.)
Kým používate nástroj výber, môžete tiež nastaviť presné hodnoty súradníc (X a Y) a veľkosti (W a H) výberu pomocou číselných vstupých polí v Paneli ovládania (nad plátnom).
Transformácia pomocou kláves
Jedna z vlastností Inkscape, ktorá ho odlišuje od väčšiny ostatných vektorových editorov je dôraz na prístupnosť z klávesnice. Ťažko existuje nejaký príkaz alebo činnosť, ktorú nie je možné vykonať pomocou klávesnice a transformácie objektov nie sú výnimkou.
Pomocou klávesnice sa môžete pohybovať (klávesy šípok), meniť veľkosť (klávesy < a >) a otáčať (klávesy [ a ]) objekty. Štandardný posun a zmena veľkosti je o 2 px; pri držaní klávesu Shift posúvate alebo meníte veľkosť o desaťnásobok. Ctrl+> a Ctrl+< zväčšujú resp. zmenšujú na 200 resp 50 % originálu. Štandardné otočenie je o 15 stupňov; pri držaní Ctrl otáčate o 90 stupňov.
Ale snáď najužitočnejšie sú transformácie vo veľkosti pixelov, ktoré sa vyvolávajú držaním Alt spolu s transformačnými klávesmi. Napríklad, Alt+šípky posunú výber o 1 pixel pri súčasnej mierke (t.j. o 1 obrazový pixel, nemýliť si s jednotkou px, ktorá je dĺžkovou jednotkou v SVG nezávislou od mierky zobrazenia). To znamená, že ak zväčšíte mierku, jedným stlačením Alt+šípka dosiahnete menšieho absolútneho posunu, ktorý stále bude vyzerať ako posunutie o jeden pixel na vašej obrazovke. Tak je možné meniť pozíciu obejktov s ľubovoľnou presnosťou jednoduchou zmenou mierky podľa potreby.
Podobne, Alt+> a Alt+< menia veľkosť výberu tak, že sa zení o jeden obrazový pixel, a Alt+[ a Alt+] ho otáčajú tak, že sa bod naviac vzdialený od stredu posunie o jeden pixel.
Pozn.: Používatelia Linuxu nemusia dosiahnuť očakávaných výsledkov pri použití Alt+šípka a niekoľkých ďalších kombinácií kláves, ak ich správca okien tieto udalosti klávesnice zachytí predtým, než dosiahnu aplikáciu Inkscape. Jedným riešením by bolo zmeniť konfiguráciu Správcu okien tak, ako je potrebné.
Multiple selections
You can select any number of objects simultaneously by Shift+clicking them. Or, you can drag around the objects you need to select; this is called rubberband selection. (Selector creates rubberband when dragging from an empty space; however, if you press Shift before starting to drag, Inkscape will always create the rubberband.) Practice by selecting all three of the shapes below:
Now, use rubberband (by drag or Shift+drag) to select the two ellipses but not the rectangle:
Each individual object within a selection displays a selection cue — by default, a dashed rectangular frame. These cues make it easy to see at once what is selected and what is not. For example, if you select both the two ellipses and the rectangle, without the cues you would have hard time guessing whether the ellipses are selected or not.
Shift+clicking on a selected object excludes it from the selection. Select all three objects above, then use Shift+click to exclude both ellipses from the selection leaving only the rectangle selected.
Pressing Esc deselects any selected objects. Ctrl+A selects all objects in the current layer (if you did not create layers, this is the same as all objects in the document).
Grouping
Several objects can be combined into a group. A group behaves as a single object when you drag or transform it. Below, the three objects on the left are independent; the same three objects on the right are grouped. Try to drag the group.
To create a group, you select one or more objects and press Ctrl+G. To ungroup one or more groups, select them and press Ctrl+U. Groups themselves may be grouped, just like any other objects; such recursive groups may go down to arbitrary depth. However, Ctrl+U only ungroups the topmost level of grouping in a selection; you'll need to press Ctrl+U repeatedly if you want to completely ungroup a deep group-in-group.
You don't necessarily have to ungroup, however, if you want to edit an object within a group. Just Ctrl+click that object and it will be selected and editable alone, or Shift+Ctrl+click several objects (inside or outside any groups) for multiple selection regardless of grouping. Try to move or transform the individual shapes in the group (above right) without ungrouping it, then deselect and select the group normally to see that it still remains grouped.
Fill and stroke
Many of Inkscape's functions are available via dialogs. Probably the simplest way to paint an object some color is to open the Swatches dialog from the View menu (or press Shift+Ctrl+W), select an object, and click a swatch to paint it (change its fill color).
More powerful is the Fill and Stroke dialog from the Object menu (or press Shift+Ctrl+F). Select the shape below and open the Fill and Stroke dialog.
You will see that the dialog has three tabs: Fill, Stroke paint, and Stroke style. The Fill tab lets you edit the fill (interior) of the selected object(s). Using the buttons just below the tab, you can select types of fill, including no fill (the button with the X), flat color fill, as well as linear or radial gradients. For the above shape, the flat fill button will be activated.
Further below, you see a collection of color pickers, each in its own tab: RGB, CMYK, HSL, and Wheel. Perhaps the most convenient is the Wheel picker, where you can rotate the triangle to choose a hue on the wheel, and then select a shade of that hue within the triangle. All color pickers contain a slider to set the alpha (opacity) of the selected object(s).
Whenever you select an object, the color picker is updated to display its current fill and stroke (for multiple selected objects, the dialog shows their average color). Play with these samples or create your own:
Using the Stroke paint tab, you can remove the stroke (outline) of the object, or assign any color or transparency to it:
The last tab, Stroke style, lets you set the width and other parameters of the stroke:
Finally, instead of flat color, you can use gradients for fills and/or strokes:
When you switch from flat color to gradient, the newly created gradient uses the previous flat color, going from opaque to transparent. Switch to the Gradient tool (Ctrl+F1) to drag the gradient handles — the controls connected by lines that define the direction and length of the gradient. When any of the gradient handles is selected (highlighted blue), the Fill and Stroke dialog sets the color of that handle instead of the color of the entire selected object.
Yet another convenient way to change a color of an object is by using the Dropper tool (F7). Just click anywhere in the drawing with that tool, and the picked color will be assigned to the selected object's fill (Shift+click will assign stroke color).
Duplication, alignment, distribution
One of the most common operations is duplicating an object (Ctrl+D). The duplicate is placed exactly above the original and is selected, so you can drag it away by mouse or by arrow keys. For practice, try to fill the line with copies of this black square:
Chances are, your copies of the square are placed more or less randomly. This is where the Align dialog (Ctrl+Shift+A) is useful. Select all the squares (Shift+click or drag a rubberband), open the dialog and press the “Center on horizontal axis” button, then the “Make horizontal gaps between objects equal” button (read the button tooltips). The objects are now neatly aligned and distributed equispacedly. Here are some other alignment and distribution examples:
Z-order
The term z-order refers to the stacking order of objects in a drawing, i.e. to which objects are on top and obscure others. The two commands in the Object menu, Raise to Top (the Home key) and Lower to Bottom (the End key), will move your selected objects to the very top or very bottom of the current layer's z-order. Two more commands, Raise (PgUp) and Lower (PgDn), will sink or emerge the selection one step only, i.e. move it past one non-selected object in z-order (only objects that overlap the selection count; if nothing overlaps the selection, Raise and Lower move it all the way to the top or bottom correspondingly).
Practice using these commands by reversing the z-order of the objects below, so that the leftmost ellipse is on top and the rightmost one is at the bottom:
A very useful selection shortcut is the Tab key. If nothing is selected, it selects the bottommost object; otherwise it selects the object above the selected object(s) in z-order. Shift+Tab works in reverse, starting from the topmost object and proceeding downwards. Since the objects you create are added to the top of the stack, pressing Shift+Tab with nothing selected will conveniently select the object you created last. Practice the Tab and Shift+Tab keys on the stack of ellipses above.
Selecting under and dragging selected
What to do if the object you need is hidden behind another object? You may still see the bottom object if the top one is (partially) transparent, but clicking on it will select the top object, not the one you need.
This is what Alt+click is for. First Alt+click selects the top object just like the regular click. However, the next Alt+click at the same point will select the object below the top one; the next one, the object still lower, etc. Thus, several Alt+clicks in a row will cycle, top-to-bottom, through the entire z-order stack of objects at the click point. When the bottom object is reached, next Alt+click will, naturally, again select the topmost object.
[If you are on Linux, you might find that Alt+click does not work properly. Instead, it might be moving the whole Inkscape window. This is because your window manager has reserved Alt+click for a different action. The way to fix this is to find the Window Behavior configuration for your window manager, and either turn it off, or map it to use the Meta key (aka Windows key), so Inkscape and other applications may use the Alt key freely.]
This is nice, but once you selected an under-the-surface object, what can you do with it? You can use keys to transform it, and you can drag the selection handles. However, dragging the object itself will reset the selection to the top object again (this is how click-and-drag is designed to work — it selects the (top) object under cursor first, then drags the selection). To tell Inkscape to drag what is selected now without selecting anything else, use Alt+drag. This will move the current selection no matter where you drag your mouse.
Practice Alt+click and Alt+drag on the two brown shapes under the green transparent rectangle:
Conclusion
This concludes the Basic tutorial. There's much more than that to Inkscape, but with the techniques described here, you will already be able to create simple yet useful graphics. For more complicated stuff, go through the Advanced and other tutorials in .