Difference between revisions of "Drawing a smiley face, part 1"
Line 50: | Line 50: | ||
If you're not happy with the shape of your circle, you can delete it (delete key, or Edit>Delete in the menu) and start over. | If you're not happy with the shape of your circle, you can delete it (delete key, or Edit>Delete in the menu) and start over. | ||
− | Depending on the settings at your computer, your circle may show up with a different stroke (pen color) and fill color than shown here; we'll get to that | + | Depending on the settings at your computer, your circle may show up with a different stroke (pen color) and fill color than shown here; we'll get to that in a few steps. |
− | '''6.''' The fill and stroke pane | + | '''6.''' Zooming to fit the object on the screen. While we wanted to place the circle in the middle of the screen, now we want to just view that circle. Select View>Zoom>Selection to zoom the viewpoint and leave only the circle visible, not the full page. There is, of course, also a toolbar button that does the same thing-- it's located two icons to the left of the "zoom to fit page in window" button that we mentioned in step 4. |
+ | |||
+ | http://wiki.evilmadscience.com/s3/eggbot/smileytut/10.jpg | ||
+ | |||
+ | |||
+ | '''7.''' Open the Fill and Stroke controls, using the highlighted icon in the top toolbar. You can also use open it from the menu: Object> Fill and Stroke... (the first item in the menu). This is one of several "sidebar panes" that live in a tray to the right side of the drawing; it doesn't go away until you close it. | ||
+ | |||
+ | The Fill and Stroke pane allows you to manipulate the fill color and stroke (outline pen) color and thickness for most objects in Inkscape. | ||
+ | |||
+ | http://wiki.evilmadscience.com/s3/eggbot/smileytut/9.jpg | ||
+ | |||
+ | |||
+ | '''8.''' Select the Fill tab and set the fill to "none" as shown. Eggbot can't draw solid fills like these-- we use a different trick to make solid areas, which we'll get to later. | ||
+ | |||
+ | When you turn off the fill color, ou may end up with what you see here: no apparent object, if there's no stroke (outline pen) configured. Don't worry; In the next step, we'll add the stroke color. | ||
+ | |||
+ | http://wiki.evilmadscience.com/s3/eggbot/smileytut/11.jpg | ||
+ | |||
+ | |||
+ | '''9.''' Select the Stroke Paint tab of the Fill and Stroke pane, and click the button shown to assign a solid-color stroke to the circle. In the Stroke Style tab, select a stroke width of 4 px (4 pixels wide). This wide "pen" simulates the physical pens that we use with the eggbot. | ||
+ | |||
+ | http://wiki.evilmadscience.com/s3/eggbot/smileytut/12.jpg | ||
+ | |||
+ | |||
+ | '''10.''' In the next screenshot we've taken a few short steps to make two new ellipses, that will be the eyes for our smiley face: | ||
+ | * Draw a new ellipse, using the Circle tool (without the control key held down). | ||
+ | * Select that ellipse, using the "normal" cursor tool-- the top one on the left hand toolbox column | ||
+ | * Make a copy of the ellipse, using usual copy and paste operations found in the edit menu. Paste normally pastes under the cursor. | ||
+ | |||
+ | You may also want to check the stroke widths of the objects, and make sure that they're still set to 4 px. | ||
+ | |||
+ | http://wiki.evilmadscience.com/s3/eggbot/smileytut/13.jpg | ||
+ | |||
Revision as of 00:55, 19 September 2010
This is part 1 of a tutorial, making a simple drawing in Inkscape and formatting it for the Eggbot.
<<< Introduction (part 0) || Smiley Face Tutorial || Part 2 >>>
1. First, open up Inkscape. You should see a window that looks like a drawing of a blank page. Our first task in the tutorial is to make sure that your window looks like ours-- that you have the same sets of toolbars available.
From the "View" menu, under the heading "Show/Hide," you can select which toolbars are visible. Make sure that the three indicated ones are visible: Commands bar, Tool Controls bar, and Toolbox. These are the two toolbars at the top of the screen here and the sidebar visible on the left side. In the likely case that your screen already shows these three toolbars, you won't need to change anything.
Mac users: You will note that the Inkscape menus are the ones within the Inkscape window, and are separate from the system menu bar at the top of the screen.
2. Next, we want to change the document size to better represent the drawing region of the Eggbot. From the File menu, select Document Properties:
You can also access the Document Properties dialog with Shift-Ctrl-D, or by pressing the rightmost icon in the upper toolbar (the one that looks like a page with the corner folded over).
(Mac users: Here and from here on out, we really do mean the control key, not the command key.)
3. In the Document Properties dialog box, make a few changes. First, select pixels ("px") as the default units. Ignore the list of standard page sizes, and instead enter Width: 3200 and Height: 800 (pixels) for the custom page size. Close the box to apply the values and change the page size.
3200 pixels wide represents a full rotation of an egg (or other round object) in the Eggbot-- 3200 motor steps. 800 pixels (800 motor steps) represents a typical value for the available range of motion for the Eggbot pen arm; the actual travel varies depending on object shape, size, pen type, and other factors.
As an alternative to manually entering a page size, you may prefer to use one of the existing Eggbot templates-- just an Inkscape document saved with the page size already set to these values. However, even if you do use the template, it's still nice to know how to change the page size and default units!
4. Your document will probably look something like this:
In words, the page size spills out of the area that we're currently viewing. To fix this, you can use the "zoom to fit page in window" button in the toolbar (highlighted in the next picture) to change the view, and scale the entire page to be in view. You can also select View > Zoom > Page to do the same thing.
5. Let's draw an object.
Select the circle tool from the left toolbar. (Formally, it's the "Create circles, ellipses, and arcs" tool.) Use it to drag a circle in the middle of the page, roughly 2/3 - 3/4 as tall as the page. Tip: Hold down the control-key while dragging to make a perfect circle.
If you're not happy with the shape of your circle, you can delete it (delete key, or Edit>Delete in the menu) and start over.
Depending on the settings at your computer, your circle may show up with a different stroke (pen color) and fill color than shown here; we'll get to that in a few steps.
6. Zooming to fit the object on the screen. While we wanted to place the circle in the middle of the screen, now we want to just view that circle. Select View>Zoom>Selection to zoom the viewpoint and leave only the circle visible, not the full page. There is, of course, also a toolbar button that does the same thing-- it's located two icons to the left of the "zoom to fit page in window" button that we mentioned in step 4.
7. Open the Fill and Stroke controls, using the highlighted icon in the top toolbar. You can also use open it from the menu: Object> Fill and Stroke... (the first item in the menu). This is one of several "sidebar panes" that live in a tray to the right side of the drawing; it doesn't go away until you close it.
The Fill and Stroke pane allows you to manipulate the fill color and stroke (outline pen) color and thickness for most objects in Inkscape.
8. Select the Fill tab and set the fill to "none" as shown. Eggbot can't draw solid fills like these-- we use a different trick to make solid areas, which we'll get to later.
When you turn off the fill color, ou may end up with what you see here: no apparent object, if there's no stroke (outline pen) configured. Don't worry; In the next step, we'll add the stroke color.
9. Select the Stroke Paint tab of the Fill and Stroke pane, and click the button shown to assign a solid-color stroke to the circle. In the Stroke Style tab, select a stroke width of 4 px (4 pixels wide). This wide "pen" simulates the physical pens that we use with the eggbot.
10. In the next screenshot we've taken a few short steps to make two new ellipses, that will be the eyes for our smiley face:
- Draw a new ellipse, using the Circle tool (without the control key held down).
- Select that ellipse, using the "normal" cursor tool-- the top one on the left hand toolbox column
- Make a copy of the ellipse, using usual copy and paste operations found in the edit menu. Paste normally pastes under the cursor.
You may also want to check the stroke widths of the objects, and make sure that they're still set to 4 px.
<<< Introduction (part 0) || Smiley Face Tutorial || Part 2 >>>