Changeset 120 for trunk/samples
- Timestamp:
- 08/19/2007 17:59:05 (13 months ago)
- Location:
- trunk/samples
- Files:
-
- 8 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/anim-move.rb
r97 r120 1 1 Shoes.app do 2 background "rgb(0, 0, 0)"3 fill 1.0, 1.0, 1.02 background rgb(0, 0, 0) 3 fill rgb(255, 255, 255) 4 4 rects = [ 5 5 rect(0, 0, 50, 50), -
trunk/samples/bounce.rb
r115 r120 8 8 animate(30) do 9 9 clear do 10 background "rgb(102, 102, 102)"10 background rgb(102, 102, 102) 11 11 x += xspeed * xdir 12 12 y += yspeed * ydir -
trunk/samples/calc.rb
r85 r120 42 42 43 43 stack :margin => 4 do 44 background "rgb(240, 240, 210)", :radius => 544 background rgb(240, 240, 210), :radius => 5 45 45 46 46 stack do -
trunk/samples/draw.rb
r113 r120 1 1 Shoes.app do 2 background " rgb(102, 102, 102)"3 stroke 0, 0, 02 background "#999" 3 stroke "#000" 4 4 x, y = nil, nil 5 5 motion do |_x, _y| -
trunk/samples/edit.rb
r27 r120 1 1 str, t = "", nil 2 2 Shoes.app :height => 500, :width => 450 do 3 background "rgb(77, 77, 77)"3 background rgb(77, 77, 77) 4 4 stack :margin => 10 do 5 5 text "<span color='white'><span color='red' background='white'>TEXT EDITOR</span> * USE ALT-Q TO QUIT</span>" -
trunk/samples/follow.rb
r108 r120 2 2 Shoes.app do 3 3 nostroke 4 fill 1.0, 1.0, 1.0, 0.64 fill rgb(0x30, 0xFF, 0xFF, 0.6) 5 5 animate(24) do 6 6 trails.shift … … 8 8 9 9 clear do 10 background "rgb(51, 51, 51)"10 background rgb(51, 51, 51) 11 11 trails.each_with_index do |(x, y), i| 12 12 i += 1 -
trunk/samples/rect.rb
r86 r120 2 2 20.times do 3 3 nostroke 4 fill (0.6..1.0).rand, (0.1..1.0).rand, (0.2..1.0).rand, (0.4..1.0).rand4 fill rgb((0.6..1.0).rand, (0.1..1.0).rand, (0.2..1.0).rand, (0.4..1.0).rand) 5 5 r = rand(300) + 60 6 6 rect (10..100).rand, (10..200).rand, r, r -
trunk/samples/timer.rb
r12 r120 1 1 label, time = nil, Time.now 2 2 Shoes.app :height => 150, :width => 250 do 3 background "rgb(240, 250, 208)"3 background rgb(240, 250, 208) 4 4 stack :margin => 10 do 5 5 button "Start" do
