Wiki source code of Regenbogen
Last modified by Michael Jagoutz on 2021/05/21 09:31
Hide last authors
author | version | line-number | content |
---|---|---|---|
20.1 | 1 | (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %) | |
9.2 | 2 | ((( | |
3 | (% class="col-xs-12 col-sm-8" %) | ||
4 | ((( | ||
24.1 | 5 | (% class="badge errormessage" %)** PRO **(%%)** In this tutorial you learn how to code a rainbow!** | |
9.2 | 6 | ||
24.1 | 7 | //(32.1 x 62.2 mm)// | |
18.1 | 8 | ||
24.1 | 9 | //Here you can download the description in [[PDF-format>>attach:Rainbow.pdf]]!// | |
9.2 | 10 | ))) | |
11 | |||
12 | (% class="col-xs-12 col-sm-4" %) | ||
13 | ((( | ||
20.1 | 14 | [[image:regenbogen_2.png||queryString="width=150&height=110" alt="Regenbogen Example" height="110" style="float:right" width="200"]] | |
9.2 | 15 | ))) | |
16 | ))) | ||
17 | |||
18 | (% class="row" %) | ||
19 | ((( | ||
20 | (% class="col-xs-12 col-sm-6" %) | ||
21 | ((( | ||
22 | (% class="box" %) | ||
23 | ((( | ||
24.1 | 24 | That's how the rainbow embroidery looks like: | |
9.2 | 25 | ||
26 | |||
24.1 | 27 | [[image:1.png||queryString="width=505&height=300" height="248" width="417"]] | |
9.2 | 28 | ))) | |
29 | ))) | ||
30 | |||
31 | (% class="col-xs-12 col-sm-6" %) | ||
32 | ((( | ||
33 | (% class="box" %) | ||
34 | ((( | ||
24.1 | 35 | **~1. **At first, create 6 new Embroidery-Objects. | |
36 | //Have a look on how to create an embroidery object [[here>>url:https://wiki.catrobat.org/bin/view/Education/Embroidery/Create%20Embroidery-Objects/]].// | ||
9.2 | 37 | ||
24.1 | 38 | Every object has one color of the rainbow. That's how your project should look like: | |
9.2 | 39 | ||
40 | |||
24.1 | 41 | [[image:rainbow_1.png||alt="Regenbogen Schritt 1" height="578" width="306"]] | |
9.2 | 42 | ))) | |
43 | ))) | ||
44 | ))) | ||
45 | |||
46 | (% class="row" %) | ||
47 | ((( | ||
48 | (% class="col-xs-12 col-sm-6" %) | ||
49 | ((( | ||
50 | |||
51 | |||
52 | (% style="height:200px" %) | ||
53 | |(% style="height:400px" %)(% class="box infomessage" %) | ||
54 | ((( | ||
24.1 | 55 | You must **name each broadcast with the right color**, therefore for always "bow <color>", in which you replace the <color> with the right color's name. | |
9.2 | 56 | ))) | |
57 | |((( | ||
58 | (% class="box infomessage" %) | ||
59 | ((( | ||
24.1 | 60 | Get the "sew up" tutorial. You can find it [[here>>doc:Education.Embroidery.Sew Up.WebHome]]. | |
61 | |||
62 | |||
63 | Make sure you name the broadcast right too, therefore "sew up <color>, so that the object will be sewn up with the right thread. | ||
9.2 | 64 | ))) | |
65 | |||
66 | ((( | ||
67 | (% class="box errormessage" %) | ||
68 | ((( | ||
24.1 | 69 | !**Attention**! Make sure, that you also must rename the broadcast in the "sew up" tutorial. | |
9.2 | 70 | ||
24.1 | 71 | [[image:rainbow_4.png||queryString="height=100" alt="regenbogen_5.png" height="100" style="float:left" width="auto"]] | |
9.2 | 72 | ||
73 | |||
74 | ))) | ||
75 | ))) | ||
76 | ))) | ||
77 | |||
78 | |||
79 | ))) | ||
80 | |||
81 | (% class="col-xs-12 col-sm-6" %) | ||
82 | ((( | ||
83 | (% class="box" %) | ||
84 | ((( | ||
24.1 | 85 | **2. **Now you have to **add** this brickt **to every object**! There you can see the "green" object as an example. | |
9.2 | 86 | ||
24.1 | 87 | [[image:rainbow_2.png||alt="Regenbogen Schritt 2" height="762" width="312"]] | |
9.2 | 88 | ))) | |
89 | ))) | ||
90 | ))) | ||
91 | |||
92 | (% class="row" %) | ||
93 | ((( | ||
94 | (% class="col-xs-12 col-sm-6" %) | ||
95 | ((( | ||
96 | |||
97 | ))) | ||
98 | |||
99 | (% class="col-xs-12 col-sm-6" %) | ||
100 | ((( | ||
101 | (% class="box" %) | ||
102 | ((( | ||
24.1 | 103 | **3. **Add those bricks into the script of the **background**. | |
9.2 | 104 | ||
24.1 | 105 | [[image:rainbow_3.png||alt="Regenbogen Schritt 3" height="1776" width="316"]] | |
9.2 | 106 | ))) | |
107 | ))) | ||
108 | ))) | ||
109 | |||
110 | (% class="row" %) | ||
111 | ((( | ||
112 | (% class="col-xs-12 col-sm-6" %) | ||
113 | ((( | ||
114 | |||
115 | ))) | ||
116 | |||
117 | (% class="col-xs-12 col-sm-6" %) | ||
118 | ((( | ||
119 | (% class="box" %) | ||
120 | ((( | ||
24.1 | 121 | **4. **Check the bricks, if it still doesn’t work. | |
9.2 | 122 | ))) | |
123 | ))) | ||
124 | ))) | ||
125 | |||
126 | |||
127 | (% class="row" %) | ||
128 | ((( | ||
16.1 | 129 | (% class="col-xs-12 col-sm-12" %) | |
130 | ((( | ||
131 | (% class="box successmessage" %) | ||
132 | ((( | ||
24.1 | 133 | Congratulations for finishing this tutorial! Once you have completed this tutorial please go to [[https:~~/~~/code.org/api/hour/finish>>https://code.org/api/hour/finish]] to get your certificate. | |
9.2 | 134 | ))) | |
16.1 | 135 | ))) | |
136 | ))) |