Class: PhlexIcons::Flag::Sl
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Sl
show all
- Defined in:
- lib/phlex-icons/flag/sl.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
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/phlex-icons/flag/sl.rb', line 28
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.g(fill_rule: 'evenodd') do
s.path(fill: '#0000cd', d: 'M0 320.3h640V480H0z')
s.path(fill: '#fff', d: 'M0 160.7h640v159.6H0z')
s.path(fill: '#00cd00', d: 'M0 0h640v160.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
|
# File 'lib/phlex-icons/flag/sl.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: 'sl-a') do
s.rect(width: '384', height: '512', rx: '4.6', ry: '7.6')
end
end
s.g(
fill_rule: 'evenodd',
clip_path: 'url(#sl-a)',
transform: 'scale(1.33333 1)'
) do
s.path(fill: '#0000cd', d: 'M0 341.7h512V512H0z')
s.path(fill: '#fff', d: 'M0 171.4h512v170.3H0z')
s.path(fill: '#00cd00', d: 'M0 0h512v171.4H0z')
end
end
end
|