Class: PhlexIcons::Flag::Tj

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/phlex-icons/flag/tj.rb', line 38

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: %(#060), d: %(M0 0h640v480H0z))
    s.path(fill: %(#fff), d: %(M0 0h640v342.9H0z))
    s.path(fill: %(#c00), d: %(M0 0h640v137.1H0z))
    s.path(fill: %(#f8c300), d: %(M300.8 233.6a8.6 8.6 0 0 1 16 4V272h6.4v-34.3a8.6 8.6 0 0 1 16-4 20.2 20.2 0 1 0-38.4 0))
    s.path(fill: %(#fff), d: %(M305.4 224.7a14 14 0 0 1 14.6 6.5 14 14 0 0 1 14.6-6.5 14.7 14.7 0 0 0-29.2 0))
    s.path(id: %(tj-a), fill: %(#f8c300), d: %(M316.8 258.3a26 26 0 0 1-43.8 16.6 27 27 0 0 1-41 12c2.5 25 40 19.9 42.8-4.4 11.7 20.7 37.6 14.7 45.2-10.6z))
    s.use('xlink:href': %(#tj-a), width: %(100%), height: %(100%), fill: %(#f8c300), transform: %(matrix(-1 0 0 1 640 0)))
    s.path(id: %(tj-b), fill: %(#f8c300), d: %(M291.8 302.6c-5.3 11.3-15.7 13.2-24.8 4.1 0 0 3.6-2.6 7.6-3.3-.8-3.1.7-7.5 2.9-9.8a15 15 0 0 1 6.1 8.1c5.5-.7 8.2 1 8.2 1z))
    s.use('xlink:href': %(#tj-b), width: %(100%), height: %(100%), fill: %(#f8c300), transform: %(rotate(9.4 320 551.3)))
    s.use('xlink:href': %(#tj-b), width: %(100%), height: %(100%), fill: %(#f8c300), transform: %(rotate(18.7 320 551.3)))
    s.path(fill: %(none), stroke: %(#f8c300), stroke_width: %(11), d: %(M253.5 327.8a233 233 0 0 1 133 0))
    s.g(fill: %(#f8c300), transform: %(translate(320 164.6)scale(.68571))) do
      s.path(id: %(tj-c), d: %(m301930 415571-790463-574305h977066l-790463 574305L0-513674z), transform: %(scale(.00005)))
    end
    s.g(id: %(tj-d), fill: %(#f8c300), transform: %(translate(320 260.6)scale(.68571))) do
      s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-70 -121.2)))
      s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-121.2 -70)))
      s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-140)))
    end
    s.use('xlink:href': %(#tj-d), width: %(100%), height: %(100%), fill: %(#f8c300), transform: %(matrix(-1 0 0 1 640 0)))
  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
# File 'lib/phlex-icons/flag/tj.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: %(#060), d: %(M0 0h512v512H0z))
    s.path(fill: %(#fff), d: %(M0 0h512v365.7H0z))
    s.path(fill: %(#c00), d: %(M0 0h512v146.3H0z))
    s.g(fill: %(#f8c300), transform: %(translate(-256)scale(.73143))) do
      s.path(d: %(M672 340.7a12.5 12.5 0 0 1 23.3 5.9v50h9.4v-50a12.5 12.5 0 0 1 23.3-5.9 29.5 29.5 0 1 0-56 0))
      s.path(fill: %(#fff), d: %(M678.7 327.6a20 20 0 0 1 21.3 9.6 20 20 0 0 1 21.3-9.6 21.5 21.5 0 0 0-42.6 0))
      s.path(id: %(tj-a), d: %(M695.3 376.6a38 38 0 0 1-63.8 24.3 39.5 39.5 0 0 1-59.8 17.5c3.7 36.4 58.3 29 62.3-6.4 17.2 30.1 55 21.5 66-15.4z))
      s.use('xlink:href': %(#tj-a), width: %(100%), height: %(100%), transform: %(matrix(-1 0 0 1 1400 0)))
      s.path(id: %(tj-b), d: %(M658.8 441.3c-7.6 16.5-22.8 19.3-36.1 6 0 0 5.3-3.8 11-4.8a18 18 0 0 1 4.3-14.3 22 22 0 0 1 9 11.8c8-1 11.8 1.3 11.8 1.3))
      s.use('xlink:href': %(#tj-b), width: %(100%), height: %(100%), transform: %(rotate(9.4 700 804)))
      s.use('xlink:href': %(#tj-b), width: %(100%), height: %(100%), transform: %(rotate(18.7 700 804)))
      s.path(fill: %(none), stroke: %(#f8c300), stroke_width: %(16), d: %(M603 478a340 340 0 0 1 194 0))
      s.g(transform: %(translate(700 380))) do
        s.g(transform: %(translate(0 -140))) do
          s.path(id: %(tj-c), d: %(m488533-158734-790463 574305L0-513674l301930 929245-790463-574305z), transform: %(scale(.00005)))
        end
        s.g(id: %(tj-d)) do
          s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-70 -121.2)))
          s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-121.2 -70)))
          s.use('xlink:href': %(#tj-c), width: %(100%), height: %(100%), transform: %(translate(-140)))
        end
        s.use('xlink:href': %(#tj-d), width: %(100%), height: %(100%), transform: %(scale(-1 1)))
      end
    end
  end
end