tamalw (owner)

Fork Of

gist: 2479 by anonymous

Revisions

  • ed8dfe firblitz Fri Jul 25 10:35:34 -0700 2008
  • 39370e Fri Jul 25 10:26:57 -0700 2008
gist: 2480 Download_button fork
public
Public Clone URL: git://gist.github.com/2480.git
Embed All Files: show embed
aldershot.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# aldershot.rb
 
=begin
main file for aldershot mountain.
aldershot mountain is/will be a (currently)
simple chutes and ladders/snakes and
ladder/adders and ladders/moksha patamu/
gyanbazi/leela ripoff.
=end
 
tmv = lambda do |c, x, y|
  case c
    when :b
      stroke goldenrod
      fill cornflowerblue
    when :r
      stroke forestgreen
      fill tomato
  end
  strokewidth 5
  oval x, y, 40
end
 
 
Shoes.app(:height => 760, :width => 760) do
  background gradient(darkkhaki, olivedrab)
  (5..755).step(75) do |x|
    stroke maroon
    strokewidth 5
    line 5, x, 755, x
    stroke fuchsia
    strokewidth 5
    line x, 5, x, 755
  end
  tmv.call :b, 175, 325
  tmv.call :r, 550, 700
end