Class: PhlexIcons::Flag::Bj
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Bj
show all
- Defined in:
- lib/phlex-icons/flag/bj.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/phlex-icons/flag/bj.rb', line 26
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.defs do
s.clipPath(id: 'bj-a') do
s.path(fill: 'gray', d: 'M67.6-154h666v666h-666z')
end
end
s.g(clip_path: 'url(#bj-a)', transform: 'matrix(.961 0 0 .7207 -65 111)') do
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
s.path(fill: '#319400', d: 'M0-154h333v666H0z')
s.path(fill: '#ffd600', d: 'M333-154h666v333H333z')
s.path(fill: '#de2110', d: 'M333 179h666v333H333z')
end
end
end
end
|
#square ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/phlex-icons/flag/bj.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: 'bj-a') do
s.path(fill: 'gray', d: 'M67.6-154h666v666h-666z')
end
end
s.g(clip_path: 'url(#bj-a)', transform: 'translate(-52 118.4)scale(.7688)') do
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
s.path(fill: '#319400', d: 'M0-154h333v666H0z')
s.path(fill: '#ffd600', d: 'M333-154h666v333H333z')
s.path(fill: '#de2110', d: 'M333 179h666v333H333z')
end
end
end
end
|