@@ -2,7 +2,7 @@ This is the copy of original web site written by **\_why**: http://shoooes.net/t
22
33It's now gone. :(
44
5- ![ 000.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/000.jpg)
5+ ![ 000.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/000.jpg)
66
77THE TUTORIAL WALKTHROUGH
88========================
@@ -11,7 +11,7 @@ An introduction to SHOES. Code and graphical pairs.
1111
1212Okay, so, a simple Shoes program.
1313
14- ![ 001.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/001.jpg)
14+ ![ 001.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/001.jpg)
1515
1616(And again, or in case you've just arrived: Shoes is a graphics toolkit for writing colorful apps using the Ruby programming language ? which is built into Shoes.)
1717
@@ -23,7 +23,7 @@ The braces { and } are a kind of container. The button is "in" the app.
2323
2424----------------------
2525
26- ![ 002.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/002.jpg)
26+ ![ 002.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/002.jpg)
2727
2828We can place a few buttons in a stack.
2929
@@ -40,7 +40,7 @@ Stacks are essential! The most important two elements in Shoes are *stacks and f
4040----------------------
4141
4242
43- ![ 003.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/003.jpg)
43+ ![ 003.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/003.jpg)
4444
4545Okay, let's give the stack a bit of a margin. Scoot it out from the edge.
4646
@@ -57,7 +57,7 @@ Also painted the background white. Did you see that?
5757
5858----------------------
5959
60- ![ 004.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/004.jpg)
60+ ![ 004.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/004.jpg)
6161
6262Time for something new. Artwork. Drawing.
6363
@@ -72,7 +72,7 @@ Notice that while buttons just dropped into the window, we drew the circle at a
7272
7373----------------------
7474
75- ![ 005.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/005.jpg)
75+ ![ 005.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/005.jpg)
7676
7777Now, a rectangle and an arrow.
7878
@@ -95,7 +95,7 @@ Of course, you can always design your app with images. Even images from the web!
9595 image "http://shoooes.net/images/nks-kidnap.png"
9696 }
9797
98- ![ 006.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/006.jpg)
98+ ![ 006.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/006.jpg)
9999
100100Shoes even caches images in memory and on disk, like browsers do. Images are loaded in background threads as well, to prevent apps from slowing down.
101101
@@ -107,7 +107,7 @@ Now, a very important element: the para. As in: paragraph. Probably the third mo
107107 para strong("Q."), " Are you beginning to grasp hold of Shoes?"
108108 }
109109
110- ![ 007.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/007.jpg)
110+ ![ 007.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/007.jpg)
111111
112112----------------------
113113
@@ -122,11 +122,11 @@ Beyond para, you've got title and subtitle, which are bigger fonts. You can add
122122 }
123123 }
124124
125- ![ 008.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/008.jpg)
125+ ![ 008.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/008.jpg)
126126
127127----------------------
128128
129- ![ 009.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/009.jpg)
129+ ![ 009.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/009.jpg)
130130
131131Keep track of stuff by naming them as variables.
132132
@@ -137,7 +137,7 @@ Keep track of stuff by naming them as variables.
137137
138138----------------------
139139
140- ![ 010.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/010.jpg)
140+ ![ 010.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/010.jpg)
141141
142142You can then put the variables into action. When the button is clicked, the @node changes to the message shown in the picture.
143143
@@ -152,7 +152,7 @@ You can then put the variables into action. When the button is clicked, the @nod
152152
153153----------------------
154154
155- ![ 011.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/011.jpg)
155+ ![ 011.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/011.jpg)
156156
157157See if you can figure out this one. How does the gradient work? How are the letters styled?
158158
@@ -168,7 +168,7 @@ In this example, I used do and end rather than the braces. Same meaning.
168168
169169----------------------
170170
171- ![ 012.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/012.jpg)
171+ ![ 012.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/012.jpg)
172172
173173Aha, here's a flow. It keeps the text box and the button side-by-side.
174174
@@ -186,7 +186,7 @@ Aha, here's a flow. It keeps the text box and the button side-by-side.
186186
187187----------------------
188188
189- ![ 013.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/013.jpg)
189+ ![ 013.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/013.jpg)
190190
191191In this one, we make a five-point star. And it follows the mouse around as you move.
192192
@@ -211,11 +211,11 @@ On to a taste of animation. The Shoes icon moves randomly a bunch of times each
211211 end
212212
213213
214- ![ 014.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/014.jpg)
214+ ![ 014.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/014.jpg)
215215
216216----------------------
217217
218- ![ 015.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/015.jpg)
218+ ![ 015.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/015.jpg)
219219
220220Remember a few examples ago when we handled a button click? How about doing the same with a link?
221221
@@ -241,7 +241,7 @@ So, when the link gets clicked, the stack gets emptied. The poem will disappear.
241241
242242----------------------
243243
244- ![ 016.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/016.jpg)
244+ ![ 016.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/016.jpg)
245245
246246Okay, last one for now. Let's generate a hundred random circles. This example also uses the rgb method to make colors from red, green and blue fractions.
247247
@@ -261,7 +261,7 @@ Don't worry if you haven't picked up a whole lot reading through these. To get t
261261
262262----------------------
263263
264- ![ 017.jpg] ( http ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/017.jpg)
264+ ![ 017.jpg] ( https ://github.com/ashbb/shoes_tutorial_walkthrough/raw/master/imgs/017.jpg)
265265
266266Ready for more? See the [ manuals] ( http://shoes.heroku.com/manual/Hello.html ) page for a pair of longer instructions. Particularly the guide book [ Nobody Knows Shoes] ( http://cloud.github.com/downloads/shoes/shoes/nks.pdf ) , which teaches the ten essential commands to get going with Shoes.
267267
0 commit comments