|
Revision 213, 297 bytes
(checked in by why, 11 months ago)
|
|
* shoes/ruby.c: adding a span inline, which does just like HTML, for applying adhoc styles.
* samples/: updating some samples with the new methods, still needs lots of work obviously.
|
| Line | |
|---|
| 1 | Shoes.app do |
|---|
| 2 | stack :top => 0.5, :left => 0.5 do |
|---|
| 3 | para "Counting up:" |
|---|
| 4 | l = para "0" |
|---|
| 5 | animate(24) do |i| |
|---|
| 6 | f = ['Arial 14px', 'Serif 34px', 'Monospace 18px', 'Arial 48px'][rand(3)] |
|---|
| 7 | l.replace "#{i}", :font => f |
|---|
| 8 | end |
|---|
| 9 | motion do |x, y| |
|---|
| 10 | Shoes.p [x, y] |
|---|
| 11 | end |
|---|
| 12 | end |
|---|
| 13 | end |
|---|