Class: PhlexIcons::Flag::Is
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Is
show all
- Defined in:
- lib/phlex-icons/flag/is.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/phlex-icons/flag/is.rb', line 29
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.defs do
s.clipPath(id: 'is-a') { s.path(fill_opacity: '.7', d: 'M0 0h640v480H0z') }
end
s.g(fill_rule: 'evenodd', stroke_width: '0', clip_path: 'url(#is-a)') do
s.path(fill: '#003897', d: 'M0 0h666.7v480H0z')
s.path(
fill: '#fff',
d: 'M0 186.7h186.7V0h106.6v186.7h373.4v106.6H293.3V480H186.7V293.3H0z'
)
s.path(
fill: '#d72828',
d: 'M0 213.3h213.3V0h53.4v213.3h400v53.4h-400V480h-53.4V266.7H0z'
)
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
|
# File 'lib/phlex-icons/flag/is.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: 'is-a') do
s.path(fill_opacity: '.7', d: 'M85.4 0h486v486h-486z')
end
end
s.g(
fill_rule: 'evenodd',
stroke_width: '0',
clip_path: 'url(#is-a)',
transform: 'translate(-90)scale(1.0535)'
) do
s.path(fill: '#003897', d: 'M0 0h675v486H0z')
s.path(fill: '#fff', d: 'M0 189h189V0h108v189h378v108H297v189H189V297H0z')
s.path(fill: '#d72828', d: 'M0 216h216V0h54v216h405v54H270v216h-54V270H0z')
end
end
end
|