Hide last authors
Stella170101 7.2 1 (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %)
2 (((
3 (% class="col-xs-12 col-sm-8" %)
4 (((
Stella170101 16.1 5 (% class="badge" %)** STITCH TYPES **(%%)** In this Tutorial you learn how to program the zigzag stitch.**
Stella170101 7.2 6 )))
7
8 (% class="col-xs-12 col-sm-4" %)
9 (((
10 [[image:zigzag_bild.png||queryString="width=150" alt="Grid Picture" height="49" style="float:right" width="200"]]
11 )))
12 )))
13
14 (% class="row" %)
15 (((
16 (% class="col-xs-12 col-sm-6" %)
17 (((
Stella170101 16.1 18 |(% style="height:350px" %)(% class="box" %)
Stella170101 7.2 19 (((
Stella170101 16.1 20 **~1. **Create a new Embroidery-Object.
21 //Have a look on how to create an embroidery object [[here>>url:https://wiki.catrobat.org/bin/view/Education/Embroidery/Create%20Embroidery-Objects/]].//
Stella170101 7.2 22 )))
Stella170101 16.1 23 |(% style="height:440px" %)(((
Stella170101 7.2 24 (% style="text-align:center" %)
Stella170101 16.1 25 [[image:zigzag_1.png||height="174" width="400"]]
Stella170101 7.2 26 )))
27
28
29 )))
30
31 (% class="col-xs-12 col-sm-6" %)
32 (((
33 (% class="box" %)
34 (((
Stella170101 16.1 35 **2. **Now start and insert the bricks step by step into your script.
Stella170101 7.2 36
Stella170101 16.1 37 [[image:zigzag_5.png||alt="Zickzackstich Code"]]
Stella170101 7.2 38 )))
39 )))
40 )))
41
42
43 (% class="row" %)
44 (((
45 (% class="col-xs-12 col-sm-6" %)
46 (((
47
48 )))
49
50 (% class="col-xs-12 col-sm-6" %)
51 (((
52 (% class="box" %)
53 (((
Stella170101 16.1 54 **3. **Check the bricks, if it still doesn’t work.
Stella170101 7.2 55 )))
56 )))
57 )))
58
59 (% class="row" %)
60 (((
61 (% class="col-xs-12 col-sm-12" %)
62 (((
63 (% class="row" %)
64 (((
65 (% class="col-xs-12 col-sm-6" %)
66 (((
67 (% class="box infomessage" %)
68 (((
Stella170101 16.1 69 Of course you can change the variables as you like, but make sure the width is not smaller than 8 or greater than 25.
Stella170101 7.2 70 )))
71 )))
72
73 (% class="col-xs-12 col-sm-6" %)
74 (((
75 (% class="box" %)
76 (((
Stella170101 16.1 77 **4. **To use the stitch you set the variables first, then broadcast your script inside a loop.
Stella170101 7.2 78
Stella170101 16.1 79 [[image:zigzag_3.png]]
Stella170101 7.2 80 )))
81 )))
82 )))
83
84 (% class="box infomessage" %)
85 (((
Stella170101 16.1 86 **If you are up to create your own stitches, it is helpfull to understand why and how this code works. Afterwards it will be much easier to understand and analyze your own stitch idea.**
Stella170101 7.2 87 )))
88
89 (% class="box infomessage" %)
90 (((
Stella170101 16.1 91 You can see the mathematical breackdown of the zigzag stitch below. Compare it with the code above to fully understand what is happening.
92
93 (% aria-label="Folie15.PNG image widget" contenteditable="false" role="region" tabindex="-1" %)
94 (((
95
Stella170101 7.2 96 )))
Stella170101 16.1 97 )))
Stella170101 7.2 98
99 (% style="text-align:center" %)
Stella170101 16.1 100 [[image:Folie17.PNG]]
Stella170101 7.2 101 )))
102 )))