Class: PhlexIcons::Flag::Np

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



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/phlex-icons/flag/np.rb', line 35

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'np-a') { s.path(fill_opacity: '.7', d: 'M0-16h512v512H0z') }
    end
    s.g(clip_path: 'url(#np-a)', transform: 'translate(0 15)scale(.9375)') do
      s.g(fill_rule: 'evenodd') do
        s.path(
          fill: '#ce0000',
          stroke: '#000063',
          stroke_width: '13.8',
          d: 'M6.5 489.5h378.8L137.4 238.1l257.3.3L6.6-9.5v499z'
        )
        s.path(
          fill: '#fff',
          d:
            'm180.7 355.8-27 9 21.2 19.8-28.5-1.8 11.7 26.2-25.5-12.3.5 28.6-18.8-20.9-10.7 26.6-9.2-26.3-20.3 20.6 1.8-27.7L49 409l12.6-25-29.3.6 21.5-18.3-27.3-10.5 27-9L32.2 327l28.4 1.8L49 302.6l25.6 12.3-.5-28.6 18.8 20.9 10.7-26.6 9.1 26.3 20.4-20.6-1.9 27.7 27-11.4-12.7 25 29.4-.6-21.5 18.3zm-32.4-184.7-11.3 8.4 5.6 4.6a94 94 0 0 0 30.7-36c1.8 21.3-17.7 69-68.7 69.5a70.6 70.6 0 0 1-71.5-70.3c10 18.2 16.2 27 32 36.5l4.7-4.4-10.6-8.9 13.7-3.6-7.4-12.4 14.4 1-1.8-14.4 12.6 7.4 4-13.5 9 10.8 8.5-10.3 4.6 14 11.8-8.2-1.5 14.3 14.2-1.7-6.7 13.2z'
        )
      end
    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
31
32
33
# File 'lib/phlex-icons/flag/np.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: 'np-b') { s.path(fill_opacity: '.7', d: 'M0-16h512v512H0z') }
      s.clipPath(id: 'np-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
    end
    s.g(clip_path: 'url(#np-a)') do
      s.g(clip_path: 'url(#np-b)', transform: 'translate(0 16)') do
        s.g(fill_rule: 'evenodd') do
          s.path(
            fill: '#ce0000',
            stroke: '#000063',
            stroke_width: '13',
            d: 'M6.5 489.5h378.8L137.4 238.1l257.3.3L6.6-9.5v499z'
          )
          s.path(
            fill: '#fff',
            d:
              'm180.7 355.8-27 9 21.2 19.8-28.5-1.8 11.7 26.2-25.5-12.3.5 28.6-18.8-20.9-10.7 26.6-9.2-26.3-20.3 20.6 1.8-27.7L49 409l12.6-25-29.3.6 21.5-18.3-27.3-10.5 27-9L32.2 327l28.4 1.8L49 302.6l25.6 12.3-.5-28.6 18.8 20.9 10.7-26.6 9.1 26.3 20.4-20.6-1.9 27.7 27-11.4-12.7 25 29.4-.6-21.5 18.3zm-32.4-184.7-11.3 8.4 5.6 4.6a94 94 0 0 0 30.7-36c1.8 21.3-17.7 69-68.7 69.5a70.6 70.6 0 0 1-71.5-70.3c10 18.2 16.2 27 32 36.5l4.7-4.4-10.6-8.9 13.7-3.6-7.4-12.4 14.4 1-1.8-14.4 12.6 7.4 4-13.5 9 10.8 8.5-10.3 4.6 14 11.8-8.2-1.5 14.3 14.2-1.7-6.7 13.2z'
          )
        end
      end
    end
  end
end