Class: PhlexIcons::Flag::Bs

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/phlex-icons/flag/bs.rb', line 29

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'bs-a') do
        s.path(fill_opacity: '.7', d: 'M-12 0h640v480H-12z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#bs-a)',
      transform: 'translate(12)'
    ) do
      s.path(fill: '#fff', d: 'M968.5 480h-979V1.8h979z')
      s.path(fill: '#ffe900', d: 'M968.5 344.5h-979V143.3h979z')
      s.path(fill: '#08ced6', d: 'M968.5 480h-979V320.6h979zm0-318.7h-979V2h979z')
      s.path(
        fill: '#000001',
        d: 'M-11 0c2.3 0 391.8 236.8 391.8 236.8L-12 479.2z'
      )
    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
# File 'lib/phlex-icons/flag/bs.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: 'bs-a') do
        s.path(fill_opacity: '.7', d: 'M56.6 26.4H537v480.3H56.6z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      clip_path: 'url(#bs-a)',
      transform: 'matrix(1.066 0 0 1.067 -60.4 -28.1)'
    ) do
      s.path(fill: '#fff', d: 'M990 506.2H9.4V27.6H990z')
      s.path(fill: '#ffe900', d: 'M990 370.6H9.4V169.2H990z')
      s.path(fill: '#08ced6', d: 'M990 506.2H9.4V346.7H990zm0-319H9.4V27.9H990z')
      s.path(fill: '#000001', d: 'M9 25.9c2.1 0 392.3 237 392.3 237L7.8 505.3z')
    end
  end
end