Show last authors
1 (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %)
2 (((
3 (% class="col-xs-12 col-sm-8" %)
4 (((
5 (% class="badge" %)** STITCH TYPES **(%%)** In this Tutorial you learn how to program the zigzag stitch.**
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 (((
18 |(% style="height:350px" %)(% class="box" %)
19 (((
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/]].//
22 )))
23 |(% style="height:440px" %)(((
24 (% style="text-align:center" %)
25 [[image:zigzag_1.png||height="174" width="400"]]
26 )))
27
28
29 )))
30
31 (% class="col-xs-12 col-sm-6" %)
32 (((
33 (% class="box" %)
34 (((
35 **2. **Now start and insert the bricks step by step into your script.
36
37 [[image:zigzag_5.png||alt="Zickzackstich Code"]]
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 (((
54 **3. **Check the bricks, if it still doesn’t work.
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 (((
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.
70 )))
71 )))
72
73 (% class="col-xs-12 col-sm-6" %)
74 (((
75 (% class="box" %)
76 (((
77 **4. **To use the stitch you set the variables first, then broadcast your script inside a loop.
78
79 [[image:zigzag_3.png]]
80 )))
81 )))
82 )))
83
84 (% class="box infomessage" %)
85 (((
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.**
87 )))
88
89 (% class="box infomessage" %)
90 (((
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
96 )))
97 )))
98
99 (% style="text-align:center" %)
100 [[image:Folie17.PNG]]
101 )))
102 )))