Class: PhlexIcons::Flag::Tz
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Tz
show all
- Defined in:
- lib/phlex-icons/flag/tz.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #view_template
Instance Method Details
#rectangle ⇒ Object
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/phlex-icons/flag/tz.rb', line 33
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.defs do
s.clipPath(id: 'tz-a') do
s.path(fill_opacity: '.7', d: 'M10 0h160v120H10z')
end
end
s.g(
fill_rule: 'evenodd',
stroke_width: '1pt',
clip_path: 'url(#tz-a)',
transform: 'matrix(4 0 0 4 -40 0)'
) do
s.path(fill: '#09f', d: 'M0 0h180v120H0z')
s.path(fill: '#090', d: 'M0 0h180L0 120z')
s.path(fill: '#000001', d: 'M0 120h40l140-95V0h-40L0 95z')
s.path(
fill: '#ff0',
d: 'M0 91.5 137.2 0h13.5L0 100.5zM29.3 120 180 19.5v9L42.8 120z'
)
end
end
end
|
#square ⇒ Object
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
|
# File 'lib/phlex-icons/flag/tz.rb', line 7
def square
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
) do |s|
s.defs do
s.clipPath(id: 'tz-a') do
s.path(fill_opacity: '.7', d: 'M102.9 0h496v496H103z')
end
end
s.g(clip_path: 'url(#tz-a)', transform: 'translate(-106.2)scale(1.0321)') do
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
s.path(fill: '#09f', d: 'M0 0h744.1v496H0z')
s.path(fill: '#090', d: 'M0 0h744.1L0 496z')
s.path(
fill: '#000001',
d: 'M0 496h165.4L744 103.4V0H578.7L0 392.7v103.4z'
)
s.path(
fill: '#ff0',
d: 'M0 378 567 0h56L0 415.3v-37.2zm121.1 118 623-415.3V118L177 496z'
)
end
end
end
end
|