You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,33 @@ lasercutcode
2
2
============
3
3
4
4
The idea of this workshop is to create a design in code which we can then cut out of wood, acrylic or card on the laser cutter.
5
-
5
+
### Introduction
6
6
We will use the Processing language, which is essentially Java with some additional libraries and an IDE designed to make it easy for beginners to get started. You will write code to produce a black and white bitmap image. Then you will then use a vector drawing package to transform your bitmap into a vector drawing that the laser cutter can cut. A bitmap image is just a big table of numbers which specify the color of each tiny sqaure of your image. A vector image contains a set of paths, or essentially equations that specify where the lines go. The laser cutter takes a vector image and cuts along the lines.
7
7
8
-
There are a number of demo scripts to get you started:
9
8
10
-
demo1: start here if you're a beginner
9
+
### Getting started coding your image
10
+
11
+
This repository contains a number of demo scripts to get started. Clone it or download and unzip the zip file. Start up Processing and open up one of the demo scripts.
12
+
13
+
* demo1: start here if you're a beginner
11
14
12
-
demo2: intermediate
15
+
*demo2: intermediate
13
16
14
-
demo3: more advanced.
17
+
*demo3: more advanced.
15
18
16
19
Don't feel you have to stick with the demos though. Feel free to explore and create your own designs.
17
20
18
21
Once you have made an image you are happy with you want to convert it to vector format for cutting.
19
22
20
-
Converting bitmaps to vector with Inkscape (for those without Inkcape or an equivelent installed, email your bitmap to me and I'll do the conversion):
23
+
###Converting bitmaps to vector with Inkscape
24
+
(for those without Inkcape or an equivelent installed, email your bitmap to me and I'll do the conversion):
21
25
22
-
1) Import your bitmap: File -> Import (your image will be in a folder in your sketchbook)
23
-
2) Trace the image: Path -> Trace Bitmap -> Ok
24
-
3) Drag the vector image off the top of the bitmap one and delete the bitmap (you can test which image is the vector one by selecting it, running Object -> Fill and Stroke, and changing the color. The vector image will change, the bitmap won't.
25
-
4) Resize your vector image: Select your image. On the tool bar along the top are little boxes mared W, H and a padlock icon. Toggle the padlock to locked so both dimensions scale together. Change the dropdown on the right of the H box to cm, and type into the H or W box to resize. Please keep your designs to roughly 5cm*5cm or smaller, just because we will have a lot of things to cut tonight :-)
26
-
4) Save your file as an svg: File -> Save as-> yourname.svg. (The laser cutter actually wants dxf files, which Incscape can also produce but I'm going to combine people's things into batches to save set up time on the laser cuttter, so please create an svg)
27
-
5) email it to me
26
+
1. Import your bitmap: File -> Import
27
+
2. Trace the image: Path -> Trace Bitmap -> Ok
28
+
3. Drag the vector image off the top of the bitmap one and delete the bitmap (you can test which image is the vector one by selecting it, running Object -> Fill and Stroke, and changing the color. The vector image will change, the bitmap won't.
29
+
4. Resize your vector image: Select your image. On the tool bar along the top are little boxes mared W, H and a padlock icon. Toggle the padlock to locked so both dimensions scale together. Change the dropdown on the right of the H box to cm, and type into the H or W box to resize. Please keep your designs to roughly 5cm*5cm or smaller, just because we will have a lot of things to cut tonight :-)
30
+
5. Save your file as an svg: File -> Save as-> yourname.svg. (The laser cutter actually wants dxf files, which Incscape can also produce but I'm going to combine people's things into batches to save set up time on the laser cuttter, so please create an svg)
0 commit comments