9091
1
Proc.new {|desenho| 
1
Proc.new {|desenho| 
2
 puts 'oi' 
2
 puts 'oi' 
3
Desenho.cor_linha_atual = [0.860059510185397,0.0915541313801785,0.0915541313801785]
3
Desenho.cor_linha_atual = [0,0,0]
4
 
4
        Desenho.cor_preenchimento_atual = [1,0,0]
5
desenho.preencher=false
 
 
6
        desenho.adicionarForma PrimitivasFactory.criar(
 
 
7
:circulo,
 
 
8
[
 
 
9
Ponto.new(265.0,328.0),
 
 
10
Ponto.new(243.0,285.0)
 
 
11
]
 
 
12
)
 
 
13
Desenho.cor_linha_atual = [0.860059510185397,0.0915541313801785,0.0915541313801785]
 
 
14
        Desenho.cor_preenchimento_atual = [1.0,0.0,0.892591744869154]
 
 
15
desenho.preencher=true
5
desenho.preencher=true
16
        desenho.adicionarForma PrimitivasFactory.criar(
6
        desenho.adicionarForma PrimitivasFactory.criar(
17
:retangulo,
7
:retangulo,
18
[
8
[
19
Ponto.new(76.0,225.0),
9
Ponto.new(202.0,314.0),
20
Ponto.new(162.0,127.0)
10
Ponto.new(111.0,191.0)
21
]
11
]
22
)
12
)
23
Desenho.cor_linha_atual = [0.860059510185397,0.0915541313801785,0.0915541313801785]
 
 
24
        Desenho.cor_preenchimento_atual = [1.0,0.0,0.892591744869154]
 
 
25
desenho.preencher=true
 
 
26
        desenho.adicionarForma PrimitivasFactory.criar(
 
 
27
:circulo,
 
 
28
[
 
 
29
Ponto.new(314.0,173.0),
 
 
30
Ponto.new(258.0,157.0)
 
 
31
]
 
 
32
)
 
 
33
Desenho.cor_linha_atual = [0.860059510185397,0.0915541313801785,0.0915541313801785]
 
 
34
        Desenho.cor_preenchimento_atual = [1.0,0.0,0.892591744869154]
 
 
35
desenho.preencher=true
 
 
36
        desenho.adicionarForma PrimitivasFactory.criar(
 
 
37
:polilinha,
 
 
38
[
 
 
39
Ponto.new(123.0,364.0),
 
 
40
Ponto.new(184.0,201.0)
 
 
41
]
 
 
42
)
 
 
43
}
13
}