Class: PhlexIcons::Flag::Fm

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/fm.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#initialize, #view_template

Constructor Details

This class inherits a constructor from PhlexIcons::Base

Instance Method Details

#rectangleObject



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/fm.rb', line 32

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'fm-a') do
        s.path(fill_opacity: '.7', d: 'M-81.3 0h682.6v512H-81.3z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      stroke_width: '1pt',
      clip_path: 'url(#fm-a)',
      transform: 'translate(76.3)scale(.94)'
    ) do
      s.path(fill: '#6797d6', d: 'M-252 0H772v512H-252z')
      s.path(
        fill: '#fff',
        d:
          'm259.8 123-32.4 22.2 12.4-35.9-32.5-22.2h40.1l12.4-35.9 12.4 36h40l-32.4 22.1 12.4 35.9M259.8 390l-32.4-22.2 12.4 36-32.5 22.1h40.1l12.4 35.9 12.4-36 40 .1-32.4-22.2 12.4-35.9m-188.4-92.4L79.3 306l1.4-38-37.5-11.7 38.4-11.7 1.3-38 22.3 30.8 38.4-11.8-24.6 30.7 22.4 30.7m274.2-11.7 24.6 30.7-1.4-38 37.5-11.7-38.4-11.7-1.3-38-22.3 30.8-38.4-11.8 24.6 30.7-22.4 30.7'
      )
    end
  end
end

#squareObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/phlex-icons/flag/fm.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: 'fm-a') do
        s.path(fill_opacity: '.7', d: 'M244.2 0h496v496h-496z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      stroke_width: '1pt',
      clip_path: 'url(#fm-a)',
      transform: 'translate(-252)scale(1.032)'
    ) do
      s.path(fill: '#6797d6', d: 'M0 0h992.1v496H0z')
      s.path(
        fill: '#fff',
        d:
          'M507.9 84.5h38.8l-31.5 21.4 12 34.8-31.3-21.5-31.5 21.5 12-34.8L445 84.4h39l12-34.7m12 363h38.8l-31.5-21.5 12-34.8-31.3 21.5-31.5-21.5 12 34.8-31.4 21.5H484l12 34.7M346 230.1l37.2-11.4-23.9 29.8 21.7 29.7-36.3-11.4-23.8 29.8 1.4-36.8-36.4-11.4 37.2-11.3 1.3-36.8m321 29.8-37.1-11.4 23.8 29.7-21.7 29.8 36.4-11.4 23.7 29.8-1.3-36.8 36.4-11.4-37.2-11.3-1.3-36.8'
      )
    end
  end
end