Class: SayItWithGraphs::Characters::W

Inherits:
Object
  • Object
show all
Includes:
GraphControls
Defined in:
lib/say_it_with_graphs/characters/w.rb

Instance Method Summary collapse

Methods included from GraphControls

#frame, #initialize, #rnd_line

Instance Method Details

#defineObject



6
7
8
# File 'lib/say_it_with_graphs/characters/w.rb', line 6

def define
  'w'
end

#drawObject



10
11
12
13
14
15
16
17
# File 'lib/say_it_with_graphs/characters/w.rb', line 10

def draw
  a = rnd_line
  frame { |f| f.line[a].at 100 }
  frame { |f| f.line[a].at 0 }
  frame { |f| f.line[a].at 40 }
  frame { |f| f.line[a].at 0 }
  frame { |f| f.line[a].at 100 }
end