Class: PhlexIcons::Flag::Pw

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/pw.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
# File 'lib/phlex-icons/flag/pw.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: 'pw-a') do
        s.path(fill_opacity: '.7', d: 'M-70.3 0h640v480h-640z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      stroke_width: '1pt',
      clip_path: 'url(#pw-a)',
      transform: 'translate(70.3)'
    ) do
      s.path(fill: '#4aadd6', d: 'M-173.4 0h846.3v480h-846.3z')
      s.path(
        fill: '#ffde00',
        d: 'M335.6 232.1a135.9 130.1 0 1 1-271.7 0 135.9 130.1 0 1 1 271.7 0'
      )
    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/pw.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: 'pw-a') do
        s.path(fill_opacity: '.7', d: 'M61.7 4.2h170.8V175H61.7z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      stroke_width: '1pt',
      clip_path: 'url(#pw-a)',
      transform: 'translate(-185 -12.5)scale(2.9973)'
    ) do
      s.path(fill: '#4aadd6', d: 'M0 4.2h301.2V175H0z')
      s.path(
        fill: '#ffde00',
        d:
          'M185.9 86.8a52 52 0 0 1-53 50.8 52 52 0 0 1-53.2-50.8c0-28 23.8-50.8 53.1-50.8s53 22.7 53 50.8z'
      )
    end
  end
end