Class: PhlexIcons::Flag::Vn

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



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phlex-icons/flag/vn.rb', line 31

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'vn-a') do
        s.path(fill_opacity: '.7', d: 'M-85.3 0h682.6v512H-85.3z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#vn-a)',
      transform: 'translate(80)scale(.9375)'
    ) do
      s.path(fill: '#da251d', d: 'M-128 0h768v512h-768z')
      s.path(
        fill: '#ff0',
        d:
          'M349.6 381 260 314.3l-89 67.3L204 272l-89-67.7 110.1-1 34.2-109.4L294 203l110.1.1-88.5 68.4 33.9 109.6z'
      )
    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
# File 'lib/phlex-icons/flag/vn.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: 'vn-a') do
        s.path(fill_opacity: '.7', d: 'M177.2 0h708.6v708.7H177.2z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#vn-a)',
      transform: 'translate(-128)scale(.72249)'
    ) do
      s.path(fill: '#da251d', d: 'M0 0h1063v708.7H0z')
      s.path(
        fill: '#ff0',
        d:
          'm661 527.5-124-92.6-123.3 93.5 45.9-152-123.2-93.8 152.4-1.3L536 129.8 584.3 281l152.4.2-122.5 94.7z'
      )
    end
  end
end