Class: PhlexIcons::Flag::Sz

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



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/phlex-icons/flag/sz.rb', line 46

def rectangle
  svg(
    **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
  ) do |s|
    s.path(fill: %(#3e5eb9), d: %(M0 0h640v480H0Z))
    s.path(fill: %(#ffd900), d: %(M0 90h640v300H0Z))
    s.path(fill: %(#b10c0c), d: %(M0 120h640v240H0Z))
    s.g(fill: %(#ffd900), stroke: %(#000), transform: %(translate(-43.2)scale(1.2))) do
      s.g(id: %(sz-a)) do
        s.path(fill: %(#fff), d: %(m492.9 154.3-24.3 8.6 24.2 8.5 24.3-8.5z))
        s.rect(width: %(357.1), height: %(5.7), x: %(122.8), y: %(160), rx: %(3.1), ry: %(2.9))
        s.path(d: %(M471.4 165.7a3 3 0 0 0 2.9-2.8 3 3 0 0 0-2.9-2.9m-2.8 5.7a3 3 0 0 0 2.8-2.8 3 3 0 0 0-2.8-2.9m-2.9 5.7a3 3 0 0 0 2.9-2.8 3 3 0 0 0-2.9-2.9))
      end
      s.use('xlink:href': %(#sz-a), width: %(100%), height: %(100%), x: %(-23.3), y: %(17.1))
      s.rect(width: %(485.7), height: %(8.6), x: %(59.8), y: %(195.7), stroke_width: %(1.1), rx: %(4.2), ry: %(4.3))
    end
    s.path(fill: %(#fff), stroke: %(#000), stroke_width: %(1.2), d: %(M488.2 240c-34.3 34.3-80 102.9-171.4 102.9-80 0-137.1-68.6-171.4-102.9 34.2-34.3 91.4-102.9 171.4-102.9 91.4 0 137.1 68.6 171.4 102.9z))
    s.path(d: %(M304.8 173c9.2 10.2 1.5 14.3 11.2 15 10.2.7 4.4 10.8 13 11.2 6 .2-.6 24.2 5.1 32 5.9 8.3 10.8 2.5 11 8.4 0 6.2-16 5.5-16.3 24.5-.5 10.9-13.6 11.6-14.2 18.6-.8 6.6 25.8 10.3 25.4 16.2-.3 6-28.7 5-30 11.7-.6 6 39 11 42.2 28.5-6 2-22.7 3.7-35.4 3.8-80 0-137.1-68.6-171.4-103 34.3-34.2 91.4-102.8 171.4-102.8 0 0-23.7 21.7-12 35.8z))
    s.g(stroke: %(#fff), transform: %(translate(-43.2)scale(1.2))) do
      s.g(id: %(sz-d), stroke_width: %(6.9)) do
        s.g(id: %(sz-c)) do
          s.path(id: %(sz-b), d: %(M214 192.4v-22.9m13.8 0v22.9m13.8-22.9v22.9))
          s.use('xlink:href': %(#sz-b), width: %(100%), height: %(100%), y: %(38.1))
        end
        s.use('xlink:href': %(#sz-c), width: %(100%), height: %(100%), x: %(41.6))
      end
    end
    s.use('xlink:href': %(#sz-d), width: %(100%), height: %(100%), x: %(104.8), stroke: %(#000), transform: %(translate(-43.2)scale(1.2)))
    s.g(fill: %(#a70000)) do
      s.path(fill: %(#333), stroke: %(#000), d: %(M570.4 236c-5.2 8.9 4-3 26.4 12a22 22 0 0 1 7.8 15.3c-1-.7-1.9-2.3-3-3.2-1.6 1.6 1.6 9 2 12.5-3.5-2-3.2-2.8-4.3-5.2.2 2.8-.7 10.8.8 14-2.8-.8-2.6-3-4-3.5 1 3.5-.9 7.2-.4 11.2-1.6-1.6-3.4-2.9-4.1-3.5-.2 2-3.1 6.8-3.2 8.6a5 5 0 0 1-2-3 59 59 0 0 0-8 12.4c-4.7-4-16.6-14-18.2-19.4-1.4 3-3.4 4-7.2 6.2-1.6-8.4-7.5-17.8-4.4-25.1l-6.1 4.2a50 50 0 0 1 28-33.6z))
      s.path(fill: %(#b3b3b3), d: %(M551 280.5c2.2-4.3 4.2-5.7 5.6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5.4.5-9.4 2.4-9.2 2 .2 2.4 2.3 1.1 7.6-1.3 5.5-2.2 6.8-6.4 11.2zm9.8 9.4c.3-4.6 1.4-6.5 1.6-9.5.3-5.2-.8-9 1-9 2 0 2.6 1.9 2 7.1s-1.2 6.6-4.6 11.4M82.6 264c-4-4-6.4-4.8-9-7.4-4.6-4.6-6.9-8.8-8.6-7.3s-.6 3.7 4.3 8c4.8 4.5 6.5 5.1 13.4 6.7zm-2.4 15.6c-2.6-4-4.6-5.1-6.3-7.8-3-4.5-4-8.4-5.7-7.5s-1.3 3 1.9 7.5 4.5 5.2 10.1 7.8))
      s.path(fill: %(#333), stroke: %(#000), d: %(M261.4 155.4c-4.8 9.2 8.3-3 28.8 12.4a35 35 0 0 1 9.2 19.3 62 62 0 0 1-12-5.3s9 9.2 9 19.6c-3.2-2-4.8-1.7-6-4.1 0 3.3 3 5.5 3 10.7a42 42 0 0 0-6.3-4.2c3 5.3-5.5 15.5-1.2 18.8a27 27 0 0 1-18.1-11c-1.6 1-1.8 2.7-1.9 4.6.3.1-11.3-8.7-10.2-12a10 10 0 0 0-2.2 5.8 32 32 0 0 1-9.6-13.8c-1.8 2.4-2 2.4-3.9 5-1.4-8.7-1.4-8.4 1.4-15.8l-5.6 4.3a50 50 0 0 1 25.6-34.3z))
      s.path(fill: %(#b3b3b3), d: %(M249.6 200.2c.8-6.3 2.4-8.6 3-12.8.8-7-.2-12.4 2.4-12.2 2.4.2 3.2 2.8 2 10-1.3 7.1-2.4 8.8-7.3 15.1zm13.3 11.6c-.5-5.2.5-7.6.1-11-.5-6-2.4-10.2-.2-10.5s3.4 1.6 3.6 7.8c.2 6-.3 7.7-3.5 13.7m20.8 9.6c-2.3-4.7-4.3-6-5.7-9-2.6-5.3-3.2-9.5-5.1-8.8-2 .8-1.9 3 1 8.2 2.8 5 4.1 6.1 9.7 9.6zm7.1-41.5c-5.8-3-8.7-3-12.4-5-6.5-3.4-10.3-7.1-11.6-5-1.4 2 .4 4.1 7.1 7.2s8.8 3.2 16.8 2.8zm2 17.3c-4-3.4-6.6-4-9.3-6.2-4.8-4-7.1-7.7-8.6-6.2-1.6 1.6-.6 3.6 4.4 7.3s6.7 4.1 13.6 5.1z))
    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
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/phlex-icons/flag/sz.rb', line 7

def square
  svg(
    **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink)
  ) do |s|
    s.path(fill: %(#3e5eb9), d: %(M0 0h512v512H0Z))
    s.path(fill: %(#ffd900), d: %(M0 96h512v320H0Z))
    s.path(fill: %(#b10c0c), d: %(M0 128h512v256H0Z))
    s.g(fill: %(#ffd900), stroke: %(#000), transform: %(translate(-42.4 58.8)scale(.98607))) do
      s.g(id: %(sz-a)) do
        s.path(fill: %(#fff), d: %(m492.9 154.3-24.3 8.6 24.2 8.5 24.3-8.5z))
        s.rect(width: %(357.1), height: %(5.7), x: %(122.8), y: %(160), rx: %(3.1), ry: %(2.9))
        s.path(d: %(M471.4 165.7a3 3 0 0 0 2.9-2.8 3 3 0 0 0-2.9-2.9m-2.8 5.7a3 3 0 0 0 2.8-2.8 3 3 0 0 0-2.8-2.9m-2.9 5.7a3 3 0 0 0 2.9-2.8 3 3 0 0 0-2.9-2.9))
      end
      s.use('xlink:href': %(#sz-a), width: %(100%), height: %(100%), x: %(-23.3), y: %(17.1))
      s.rect(width: %(485.7), height: %(8.6), x: %(59.8), y: %(195.7), stroke_width: %(1.1), rx: %(4.2), ry: %(4.3))
    end
    s.path(fill: %(#fff), stroke: %(#000), d: %(M394.2 256c-28.1 28.2-65.7 84.5-140.8 84.5-65.8 0-112.7-56.3-141-84.5 28.3-28.2 75.2-84.5 141-84.5 75 0 112.7 56.3 140.8 84.5z))
    s.path(d: %(M243.5 200.9c7.5 8.4 1.3 11.8 9.2 12.4 8.4.6 3.6 8.9 10.7 9.2 4.9.2-.5 19.8 4.2 26.3 4.8 6.8 8.9 2 9 6.9s-13.2 4.5-13.4 20c-.4 9-11.2 9.6-11.7 15.4-.6 5.4 21.2 8.5 21 13.3-.4 4.9-23.6 4.1-24.7 9.6-.5 5 32 9 34.7 23.4a130 130 0 0 1-29.1 3.1c-65.8 0-112.7-56.3-140.9-84.5 28.2-28.2 75.1-84.5 140.9-84.5 0 0-19.5 17.8-9.9 29.4))
    s.g(stroke: %(#fff), transform: %(translate(-42.4 58.8)scale(.98607))) do
      s.g(id: %(sz-d), stroke_width: %(6.9)) do
        s.g(id: %(sz-c)) do
          s.path(id: %(sz-b), d: %(M214 192.4v-22.9m13.8 0v22.9m13.8-22.9v22.9))
          s.use('xlink:href': %(#sz-b), width: %(100%), height: %(100%), y: %(38.1))
        end
        s.use('xlink:href': %(#sz-c), width: %(100%), height: %(100%), x: %(41.6))
      end
    end
    s.use('xlink:href': %(#sz-d), width: %(100%), height: %(100%), x: %(104.8), stroke: %(#000), transform: %(translate(-42.4 58.8)scale(.98607)))
    s.g(fill: %(#a70000)) do
      s.path(fill: %(#333), stroke: %(#000), stroke_width: %(.9), d: %(M461.8 252.7c-4.3 7.3 3.3-2.5 21.7 9.8a18 18 0 0 1 6.4 12.6c-.9-.5-1.5-1.8-2.5-2.6-1.3 1.3 1.4 7.4 1.7 10.3-2.9-1.6-2.6-2.3-3.6-4.3.2 2.4-.5 9 .7 11.5-2.3-.7-2.1-2.5-3.3-2.8.8 2.8-.7 5.9-.3 9.2-1.3-1.3-2.8-2.4-3.4-3-.1 1.7-2.5 5.7-2.6 7.1a4 4 0 0 1-1.6-2.4 49 49 0 0 0-6.7 10.2c-3.8-3.4-13.6-11.6-14.9-16-1.1 2.5-2.8 3.3-6 5.1-1.2-6.9-6-14.6-3.5-20.6l-5 3.5a41 41 0 0 1 23-27.6z))
      s.path(fill: %(#b3b3b3), d: %(M445.9 289.3c1.8-3.6 3.4-4.7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.2-7.7-5-4-3.3-5.9-6.4-7.1-5.1-1.3 1.3-.5 3 3.6 6s5.5 3.4 11.2 4.1))
    end
  end
end