Class: PhlexIcons::Flag::Ly
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Ly
show all
- Defined in:
- lib/phlex-icons/flag/ly.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/phlex-icons/flag/ly.rb', line 27
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.defs { s.clipPath(id: 'ly-a') { s.path(d: 'M166.7-20h666.6v500H166.7z') } }
s.g(clip_path: 'url(#ly-a)', transform: 'matrix(.96 0 0 .96 -160 19.2)') do
s.path(fill: '#239e46', d: 'M0-20h1000v500H0z')
s.path(fill: '#000001', d: 'M0-20h1000v375H0z')
s.path(fill: '#e70013', d: 'M0-20h1000v125H0z')
s.path(
fill: '#fff',
d:
'M544.2 185.8a54.3 54.3 0 1 0 0 88.4 62.5 62.5 0 1 1 0-88.4M530.4 230l84.1-27.3-52 71.5v-88.4l52 71.5z'
)
end
end
end
|
#square ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/phlex-icons/flag/ly.rb', line 6
def square
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
) do |s|
s.defs { s.clipPath(id: 'ly-a') { s.path(d: 'M250 12h500v500H250z') } }
s.g(
clip_path: 'url(#ly-a)',
transform: 'translate(-256 -12.3)scale(1.024)'
) do
s.path(fill: '#239e46', d: 'M0 12h1000v500H0z')
s.path(fill: '#000001', d: 'M0 12h1000v375H0z')
s.path(fill: '#e70013', d: 'M0 12h1000v125H0z')
s.path(
fill: '#fff',
d:
'M544.2 217.8a54.3 54.3 0 1 0 0 88.4 62.5 62.5 0 1 1 0-88.4M530.4 262l84.1-27.3-52 71.5v-88.4l52 71.5z'
)
end
end
end
|