Class: SayItWithGraphs::Characters::Bang
- Inherits:
-
Object
- Object
- SayItWithGraphs::Characters::Bang
show all
- Includes:
- GraphControls
- Defined in:
- lib/say_it_with_graphs/characters/bang.rb
Instance Method Summary
collapse
#frame, #initialize, #rnd_line
Instance Method Details
#define ⇒ Object
6
7
8
|
# File 'lib/say_it_with_graphs/characters/bang.rb', line 6
def define
'!'
end
|
#draw ⇒ Object
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
38
|
# File 'lib/say_it_with_graphs/characters/bang.rb', line 10
def draw
up_a = rnd_line
up_b = rnd_line
down_a = rnd_line
down_b = rnd_line
frame do |f|
f.line[up_a].at 100
f.line[up_b].at 100
f.line[down_a].at 0
f.line[down_b].at 0
end
frame do |f|
f.line[up_a].at 100
f.line[up_b].at 25
f.line[down_a].at 0
f.line[down_b].at 15
end
frame do |f|
f.line[up_a].at 100
f.line[up_b].at 100
f.line[down_a].at 0
f.line[down_b].at 0
end
end
|