Class: PhlexIcons::Flag::Mo

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/mo.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



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/phlex-icons/flag/mo.rb', line 21

def rectangle
  svg(
    **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
  ) do |s|
    s.path(fill: %(#00785e), d: %(M0 0h640v480H0z))
    s.path(fill: %(#fbd116), d: %(m295 108.7 40.5 29.5L320 90.5l-15.5 47.7 40.6-29.5z))
    s.g(id: %(mo-a)) do
      s.path(fill: %(#fff), d: %(M320 331.6H217.5l-3.8-4H320a2 2 0 0 1 1.4 2q0 1.4-1.4 2m0-31.3a13 13 0 0 0 1.2-7.6 12 12 0 0 0-1.2-3.8 82 82 0 0 1-32.5 19 81 81 0 0 1-23.5 3.5h-63.1l5.8 8h61c20 0 38.2-7.2 52.3-19.1m-109.6-24.7a32 32 0 0 1-9.7 2 81 81 0 0 0 60.8 27.5 81 81 0 0 0 58.5-25 441 441 0 0 0 4.5-58.8 441 441 0 0 0-4.5-67.7c-6.6 6-19 18.7-24.8 38.3A81 81 0 0 0 292 215a81 81 0 0 0 13.7 45 81 81 0 0 1-17-49.5q.1-18.8 7.8-34.7a33 33 0 0 1-7.5-13 81 81 0 0 0-10.5 40c0 18 5.9 34.7 15.9 48.1a95 95 0 0 0-73.4-29.4 33 33 0 0 1 6.8 8.9 95 95 0 0 1 68.6 29.4 95 95 0 0 0-61-22.2 95 95 0 0 0-36.7 7.3 81 81 0 0 0 82.6 52.2q-7 1.3-14.4 1.3a81 81 0 0 1-56.4-22.8zM320 364.4h-53.1a144 144 0 0 0 53.1 10.1 11 11 0 0 0 1.3-5 11 11 0 0 0-1.3-5.1m0-24.5h-93.6l7.8 6.2H320a5 5 0 0 0 1.3-3.1 4 4 0 0 0-1.3-3.1m0 12.5h-76.7a144 144 0 0 0 14.4 8H320a8 8 0 0 0 1.2-4.2 8 8 0 0 0-1.2-3.8))
      s.path(fill: %(#fbd116), d: %(m200.5 174.8 25.4 23.6-6.7-34-14.6 31.4 30.3-16.8zm36.9-32 34.7.6-27.7-21 10.1 33.3 11.3-32.9z))
    end
    s.use('xlink:href': %(#mo-a), width: %(100%), height: %(100%), transform: %(matrix(-1 0 0 1 640 0)))
  end
end

#squareObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/phlex-icons/flag/mo.rb', line 7

def square
  svg(
    **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
  ) do |s|
    s.path(fill: %(#00785e), d: %(M0 0h512v512H0z))
    s.path(fill: %(#fbd116), d: %(M272.5 147.4 256 96.5l-16.5 51 43.3-31.5h-53.6z))
    s.g(id: %(mo-a)) do
      s.path(fill: %(#fff), d: %(M256 353.7H146.7l-4-4.2H256a2 2 0 0 1 1.5 2q0 1.6-1.5 2.2m0-33.4c.6-1.3 1.9-4.3 1.3-8a13 13 0 0 0-1.3-4.1 87 87 0 0 1-34.7 20.2 86 86 0 0 1-25 3.7h-67.4l6.3 8.6h65a86 86 0 0 0 55.8-20.4M139.1 294a34 34 0 0 1-10.3 2.2 86 86 0 0 0 64.8 29.3 86 86 0 0 0 62.4-26.6 470 470 0 0 0 4.8-62.9 470 470 0 0 0-4.8-72.2c-7 6.3-20.2 20-26.4 40.9a87 87 0 0 0-3.6 24.6 86 86 0 0 0 14.6 48.1 86 86 0 0 1-18-52.9 86 86 0 0 1 8.2-37 35 35 0 0 1-8-13.8 86 86 0 0 0-11.2 42.6 86 86 0 0 0 17 51.4 101 101 0 0 0-78.3-31.5 35 35 0 0 1 7.2 9.5 101 101 0 0 1 73.3 31.4 101 101 0 0 0-65.2-23.6q-20.9 0-39 7.8a87 87 0 0 0 88 55.6 87 87 0 0 1-15.4 1.4 86 86 0 0 1-60.1-24.3M256 388.7h-56.6a153 153 0 0 0 56.6 10.8 12 12 0 0 0 1.3-5.3 12 12 0 0 0-1.3-5.5m0-26.2h-99.9l8.4 6.7H256a5 5 0 0 0 1.4-3.3c0-2-1.2-3.1-1.4-3.4m0 13.4h-81.8a153 153 0 0 0 15.4 8.5H256a8 8 0 0 0 1.2-4.5 8 8 0 0 0-1.2-4))
      s.path(fill: %(#fbd116), d: %(m155.6 211.7-7-36.4-15.7 33.6 32.4-18-36.8-4.5zm49.3-58.8-29.6-22.3 10.8 35.4 12.1-35-30.3 21.3z))
    end
    s.use('xlink:href': %(#mo-a), width: %(100%), height: %(100%), transform: %(matrix(-1 0 0 1 512 0)))
  end
end