Class: PhlexIcons::Flag::Tl
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Tl
show all
- Defined in:
- lib/phlex-icons/flag/tl.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/phlex-icons/flag/tl.rb', line 31
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.defs do
s.clipPath(id: 'tl-a') do
s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z')
end
end
s.g(
fill_rule: 'evenodd',
clip_path: 'url(#tl-a)',
transform: 'scale(.9375)'
) do
s.path(fill: '#cb000f', d: 'M0 0h1031.2v512H0z')
s.path(fill: '#f8c00c', d: 'M0 0c3.2 0 512 256.7 512 256.7L0 512z')
s.path(fill: '#000001', d: 'M0 0c2.1 0 340.6 256.7 340.6 256.7L0 512z')
s.path(
fill: '#fff',
d:
'M187.7 298.2 127 284.7l-31 52.8-5-59.7-60.7-13.3 54.9-24.9-3.3-59.3 40.2 43.4 55.4-25.3-28.9 54 39.2 45.8z'
)
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
|
# File 'lib/phlex-icons/flag/tl.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: 'tl-a') { s.path(fill_opacity: '.7', d: 'M0 0h496v496H0z') }
end
s.g(
fill_rule: 'evenodd',
clip_path: 'url(#tl-a)',
transform: 'scale(1.0321)'
) do
s.path(fill: '#cb000f', d: 'M0 0h999v496H0z')
s.path(fill: '#f8c00c', d: 'M0 0c3.1 0 496 248.7 496 248.7L0 496.1z')
s.path(fill: '#000001', d: 'M0 0c2 0 330 248.7 330 248.7L0 496.1z')
s.path(
fill: '#fff',
d:
'm181.9 288.9-59-13L93 327l-5-57.8-58.8-13 53.1-24-3.2-57.5 39 42 53.6-24.4-28 52.2 38 44.4z'
)
end
end
end
|