Class: PhlexIcons::Flag::Nr
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Nr
show all
- Defined in:
- lib/phlex-icons/flag/nr.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/nr.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: 'nr-a') do
s.path(fill_opacity: '.7', d: 'M-54.7 0H628v512H-54.7z')
end
end
s.g(
fill_rule: 'evenodd',
stroke_width: '1pt',
clip_path: 'url(#nr-a)',
transform: 'translate(51.3)scale(.9375)'
) do
s.path(fill: '#002170', d: 'M-140 0H884v512H-140z')
s.path(fill: '#ffb20d', d: 'M-140 234.1H884V278H-140z')
s.path(
fill: '#fff',
d:
'm161.8 438-33-33-10.5 45.4-12-45-31.9 34 12.1-45L42 407.9l33-33-45.4-10.6 45-12-34-31.8 45 12L72 288l33 33 10.6-45.4 12 45 31.8-34-12 45 44.5-13.5-33 33 45.4 10.5-45 12 34 32-45-12.2z'
)
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/nr.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: 'nr-a') do
s.path(fill_opacity: '.7', d: 'M135.6 0h496.1v496h-496z')
end
end
s.g(
fill_rule: 'evenodd',
stroke_width: '1pt',
clip_path: 'url(#nr-a)',
transform: 'translate(-140)scale(1.0321)'
) do
s.path(fill: '#002170', d: 'M0 0h992.1v496H0z')
s.path(fill: '#ffb20d', d: 'M0 226.8h992.1v42.4H0z')
s.path(
fill: '#fff',
d:
'm292.4 424.4-31.9-32-10.2 44-11.7-43.7-30.9 33 11.8-43.6-43.2 13 32-31.8-44-10.3 43.6-11.6-33-31 43.6 11.8-13-43.2 31.8 32 10.3-44 11.7 43.6 30.8-32.9-11.7 43.6 43.2-13-32 31.8 44 10.3L290 362l33 30.9-43.7-11.7z'
)
end
end
end
|