Class: PhlexIcons::Flag::Gh
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Gh
show all
- Defined in:
- lib/phlex-icons/flag/gh.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
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/phlex-icons/flag/gh.rb', line 20
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.path(fill: '#006b3f', d: 'M0 0h640v480H0z')
s.path(fill: '#fcd116', d: 'M0 0h640v320H0z')
s.path(fill: '#ce1126', d: 'M0 0h640v160H0z')
s.path(fill: '#000001', d: 'm320 160 52 160-136.1-98.9H404L268 320z')
end
end
|
#square ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/phlex-icons/flag/gh.rb', line 6
def square
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
) do |s|
s.path(fill: '#006b3f', d: 'M0 0h512v512H0z')
s.path(fill: '#fcd116', d: 'M0 0h512v341.3H0z')
s.path(fill: '#ce1126', d: 'M0 0h512v170.7H0z')
s.path(
fill: '#000001',
d: 'm256 170.7 55.5 170.6L166.3 236h179.4L200.6 341.3z'
)
end
end
|