Class: PhlexIcons::Flag::Lr

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/lr.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
55
56
57
58
59
60
61
# File 'lib/phlex-icons/flag/lr.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: 'lr-a') do
        s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#lr-a)',
      transform: 'scale(.9375)'
    ) do
      s.path(fill: '#fff', d: 'M0 0h767.9v512H0z')
      s.path(fill: '#006', d: 'M0 0h232.7v232.8H0z')
      s.path(fill: '#c00', d: 'M0 464.9h767.9V512H0z')
      s.path(
        fill: '#c00',
        d:
          'M0 465.4h767.9V512H0zm0-92.9h767.9v46.2H0zm0-93.2h766V326H0zM232.7 0h535.1v46.5H232.7zm0 186h535.1v46.8H232.7zm0-92.7h535.1v46.5H232.7z'
      )
      s.path(
        fill: '#fff',
        d:
          'm166.3 177.5-50.7-31-50.4 31.3 18.7-50.9-50.3-31.4 62.3-.4 19.3-50.7L135 95h62.3l-50.1 31.7z'
      )
    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/lr.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: 'lr-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
    end
    s.g(fill_rule: 'evenodd', clip_path: 'url(#lr-a)') do
      s.path(fill: '#fff', d: 'M0 0h767.9v512H0z')
      s.path(fill: '#006', d: 'M0 0h232.7v232.8H0z')
      s.path(fill: '#c00', d: 'M0 464.9h767.9V512H0z')
      s.path(
        fill: '#c00',
        d:
          'M0 465.4h767.9V512H0zm0-92.9h767.9v46.2H0zm0-93.2h766V326H0zM232.7 0h535.1v46.5H232.7zm0 186h535.1v46.8H232.7zm0-92.7h535.1v46.5H232.7z'
      )
      s.path(
        fill: '#fff',
        d:
          'm166.3 177.5-50.7-31-50.4 31.3 18.7-50.9-50.3-31.4 62.3-.4 19.3-50.7L135 95h62.3l-50.1 31.7z'
      )
    end
  end
end