Class: PhlexIcons::Flag::Mr

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/phlex-icons/flag/mr.rb', line 26

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.path(fill: '#cd2a3e', d: 'M0 0h640v480H0z')
    s.path(fill: '#006233', d: 'M0 72h640v336H0z')
    s.path(
      fill: '#ffc400',
      d:
        'M470 154.6a150 150 0 0 1-300 0 155 155 0 0 0-5 39.2 155 155 0 1 0 310 0 154 154 0 0 0-5-39.2',
      class: 'mr-st1'
    )
    s.path(
      fill: '#ffc400',
      d:
        'm320 93.8-13.5 41.5H263l35.3 25.6-13.5 41.4 35.3-25.6 35.3 25.6-13.5-41.4 35.3-25.6h-43.6z'
    )
  end
end

#squareObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/phlex-icons/flag/mr.rb', line 6

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.path(fill: '#cd2a3e', d: 'M0 0h512v512H0z')
    s.path(fill: '#006233', d: 'M0 76.8h512v358.4H0z')
    s.path(
      fill: '#ffc400',
      d:
        'M416 164.9a160 160 0 0 1-320 0 165 165 0 0 0-5.4 41.8A165.4 165.4 0 1 0 416 165z',
      class: 'mr-st1'
    )
    s.path(
      fill: '#ffc400',
      d:
        'm256 100-14.4 44.3h-46.5l37.6 27.3-14.3 44.2 37.6-27.3 37.6 27.3-14.4-44.2 37.7-27.3h-46.5z'
    )
  end
end