Class: PhlexIcons::Flag::Il

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/il.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
56
57
58
59
60
61
# File 'lib/phlex-icons/flag/il.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: 'il-a') do
        s.path(fill_opacity: '.7', d: 'M-87.6 0H595v512H-87.6z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#il-a)',
      transform: 'translate(82.1)scale(.94)'
    ) do
      s.path(fill: '#fff', d: 'M619.4 512H-112V0h731.4z')
      s.path(
        fill: '#0038b8',
        d:
          'M619.4 115.2H-112V48h731.4zm0 350.5H-112v-67.2h731.4zm-483-275 110.1 191.6L359 191.6z'
      )
      s.path(fill: '#fff', d: 'm225.8 317.8 20.9 35.5 21.4-35.3z')
      s.path(fill: '#0038b8', d: 'M136 320.6 246.2 129l112.4 190.8z')
      s.path(
        fill: '#fff',
        d:
          'm225.8 191.6 20.9-35.5 21.4 35.4zM182 271.1l-21.7 36 41-.1-19.3-36zm-21.3-66.5 41.2.3-19.8 36.3zm151.2 67 20.9 35.5-41.7-.5zm20.5-67-41.2.3 19.8 36.3zm-114.3 0L189.7 256l28.8 50.3 52.8 1.2 32-51.5-29.6-52z'
      )
    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/il.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: 'il-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
    end
    s.g(fill_rule: 'evenodd', clip_path: 'url(#il-a)') do
      s.path(fill: '#fff', d: 'M619.4 512H-112V0h731.4z')
      s.path(
        fill: '#0038b8',
        d:
          'M619.4 115.2H-112V48h731.4zm0 350.5H-112v-67.2h731.4zm-483-275 110.1 191.6L359 191.6z'
      )
      s.path(fill: '#fff', d: 'm225.8 317.8 20.9 35.5 21.4-35.3z')
      s.path(fill: '#0038b8', d: 'M136 320.6 246.2 129l112.4 190.8z')
      s.path(
        fill: '#fff',
        d:
          'm225.8 191.6 20.9-35.5 21.4 35.4zM182 271.1l-21.7 36 41-.1-19.3-36zm-21.3-66.5 41.2.3-19.8 36.3zm151.2 67 20.9 35.5-41.7-.5zm20.5-67-41.2.3 19.8 36.3zm-114.3 0L189.7 256l28.8 50.3 52.8 1.2 32-51.5-29.6-52z'
      )
    end
  end
end