Class: PhlexIcons::Flag::Eh

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



27
28
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
# File 'lib/phlex-icons/flag/eh.rb', line 27

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'eh-a') do
        s.path(fill_opacity: '.7', d: 'M-158.7 0H524v512h-682.7z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#eh-a)',
      transform: 'translate(148.8)scale(.94)'
    ) do
      s.path(fill: '#000001', d: 'M-158.3 0h680.9v255.3h-680.9z')
      s.path(fill: '#007a3d', d: 'M-158.3 255.3h680.9v255.3h-680.9z')
      s.path(fill: '#fff', d: 'M-158.3 148.9h680.9v212.8h-680.9z')
      s.path(fill: '#c4111b', d: 'm-158.3 0 340.4 255.3-340.4 255.3Z')
      s.circle(cx: '352.3', cy: '255.3', r: '68.1', fill: '#c4111b')
      s.circle(cx: '377.9', cy: '255.3', r: '68.1', fill: '#fff')
      s.path(
        fill: '#c4111b',
        d:
          'm334 296.5 29.1-20.7 28.8 21-10.8-34 29-20.9-35.7-.2-11-34-11.2 33.9-35.7-.2 28.7 21.2-11.1 34z'
      )
    end
  end
end

#squareObject



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

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.path(fill: '#000001', d: 'M0 0h512v256H0z')
    s.path(fill: '#007a3d', d: 'M0 256h512v256H0z')
    s.path(fill: '#fff', d: 'M0 149.3h512v213.3H0z')
    s.path(fill: '#c4111b', d: 'm0 0 256 256L0 512Z')
    s.g(stroke_width: '1.7', transform: 'translate(-135 -6.5)scale(1.02539)') do
      s.circle(cx: '512', cy: '256', r: '68.3', fill: '#c4111b')
      s.circle(cx: '537.6', cy: '256', r: '68.3', fill: '#fff')
      s.path(
        fill: '#c4111b',
        d:
          'm493.7 297.3 29-20.8 29 21.2-10.8-34.2 29-21-35.8-.2-11-34-11.3 33.9-35.7-.1 28.7 21.2z'
      )
    end
  end
end