Class: PhlexIcons::Flag::Bv

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



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/phlex-icons/flag/bv.rb', line 27

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.defs do
      s.clipPath(id: 'bv-a') { s.path(fill_opacity: '.7', d: 'M0 0h640v480H0z') }
    end
    s.g(fill_rule: 'evenodd', stroke_width: '1pt', clip_path: 'url(#bv-a)') do
      s.path(fill: '#fff', d: 'M-28 0h699.7v512H-28z')
      s.path(
        fill: '#d72828',
        d:
          'M-53-77.8h218.7v276.2H-53zM289.4-.6h381v199h-381zM-27.6 320h190.4v190.3H-27.6zm319.6 2.1h378.3v188.2H292z'
      )
      s.path(fill: '#003897', d: 'M196.7-25.4H261v535.7h-64.5z')
      s.path(fill: '#003897', d: 'M-27.6 224.8h698v63.5h-698z')
    end
  end
end

#squareObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/phlex-icons/flag/bv.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: 'bv-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
    end
    s.g(fill_rule: 'evenodd', stroke_width: '1pt', clip_path: 'url(#bv-a)') do
      s.path(fill: '#fff', d: 'M-68 0h699.7v512H-68z')
      s.path(
        fill: '#d72828',
        d:
          'M-93-77.8h218.7v276.2H-93zM249.4-.6h381v199h-381zM-67.6 320h190.4v190.3H-67.5zm319.6 2.1h378.3v188.2H252z'
      )
      s.path(fill: '#003897', d: 'M156.7-25.4H221v535.7h-64.5z')
      s.path(fill: '#003897', d: 'M-67.5 224.8h697.8v63.5H-67.5z')
    end
  end
end