Class: PhlexIcons::Flag::Cf
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Cf
show all
- Defined in:
- lib/phlex-icons/flag/cf.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
49
50
51
52
53
54
55
|
# File 'lib/phlex-icons/flag/cf.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: 'cf-a') do
s.path(fill_opacity: '.7', d: 'M-12.4 32h640v480h-640z')
end
end
s.g(
fill_rule: 'evenodd',
clip_path: 'url(#cf-a)',
transform: 'translate(12.4 -32)'
) do
s.path(fill: '#00f', d: 'M-52 32h719.3v119H-52z')
s.path(fill: '#ff0', d: 'M-52 391.6h719.3V512H-52z')
s.path(fill: '#009a00', d: 'M-52 271.3h719.3v120.3H-52z')
s.path(fill: '#fff', d: 'M-52 151h719.3v120.3H-52z')
s.path(fill: 'red', d: 'M247.7 32.5h119.9V512H247.7z')
s.path(
fill: '#ff0',
d:
'm99.3 137.7-31.5-21.8-31.3 22L47.4 101 16.9 78l38.2-1 12.5-36.3L80.3 77l38.1.7L88.2 101'
)
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/cf.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: 'cf-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
end
s.g(fill_rule: 'evenodd', clip_path: 'url(#cf-a)') do
s.path(fill: '#00f', d: 'M-52-.5h768v127H-52z')
s.path(fill: '#ff0', d: 'M-52 383.5h768V512H-52z')
s.path(fill: '#009a00', d: 'M-52 255h768v128.5H-52z')
s.path(fill: '#fff', d: 'M-52 126.5h768V255H-52z')
s.path(fill: 'red', d: 'M268 0h128v512H268z')
s.path(
fill: '#ff0',
d:
'M109.5 112.3 75.9 89.1l-33.4 23.4 11.6-39.2-32.5-24.6 40.7-1L75.7 8.8l13.5 38.6 40.8.8L97.6 73'
)
end
end
end
|