Class: SayItWithGraphs::Characters::Three
- Inherits:
-
Object
- Object
- SayItWithGraphs::Characters::Three
show all
- Includes:
- GraphControls
- Defined in:
- lib/say_it_with_graphs/characters/three.rb
Instance Method Summary
collapse
#frame, #initialize, #rnd_line
Instance Method Details
#define ⇒ Object
6
7
8
|
# File 'lib/say_it_with_graphs/characters/three.rb', line 6
def define
'3'
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
|
# File 'lib/say_it_with_graphs/characters/three.rb', line 10
def draw
a = rnd_line
b = rnd_line
c = rnd_line
d = rnd_line
frame do |f|
f.line[a].at 100
f.line[b].at 50
f.line[d].at 0
end
frame do |f|
f.line[a].at 100
f.line[b].at 50
f.line[c].at 50
f.line[d].at 0
end
frame do |f|
f.line[a].at 84
f.line[a].at 67
f.line[b].at 67
f.line[c].at 34
f.line[c].at 17
f.line[d].at 17
end
end
|