Class: PhlexIcons::Flag::Cl

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



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
# File 'lib/phlex-icons/flag/cl.rb', line 33

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'cl-a') do
        s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#cl-a)',
      transform: 'scale(.9375)'
    ) do
      s.path(fill: '#fff', d: 'M256 0h512v256H256z')
      s.path(fill: '#0039a6', d: 'M0 0h256v256H0z')
      s.path(
        fill: '#fff',
        d:
          'M167.8 191.7 128.2 162l-39.5 30 14.7-48.8L64 113.1l48.7-.5L127.8 64l15.5 48.5 48.7.1-39.2 30.4z'
      )
      s.path(fill: '#d52b1e', d: 'M0 256h768v256H0z')
    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
# File 'lib/phlex-icons/flag/cl.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: 'cl-a') do
        s.path(fill_opacity: '.7', d: 'M0 0h708.7v708.7H0z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#cl-a)',
      transform: 'scale(.722)'
    ) do
      s.path(fill: '#fff', d: 'M354.3 0H1063v354.3H354.3z')
      s.path(fill: '#0039a6', d: 'M0 0h354.3v354.3H0z')
      s.path(
        fill: '#fff',
        d:
          'm232.3 265.3-55-41.1-54.5 41.5 20.3-67.5-54.5-41.7 67.4-.6 21-67.3 21.3 67.2h67.5L211.4 198z'
      )
      s.path(fill: '#d52b1e', d: 'M0 354.3h1063v354.4H0z')
    end
  end
end