Class: PhlexIcons::Flag::Fo

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/fo.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
53
54
55
# File 'lib/phlex-icons/flag/fo.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: 'fo-a') do
        s.path(fill_opacity: '.7', d: 'M-78 32h640v480H-78z')
      end
    end
    s.g(
      fill_rule: 'evenodd',
      stroke_width: '0',
      clip_path: 'url(#fo-a)',
      transform: 'translate(78 -32)'
    ) do
      s.path(fill: '#fff', d: 'M-78 32h663.9v480H-78z')
      s.path(
        fill: '#003897',
        d: 'M-76 218.7h185.9V32H216v186.7h371.8v106.6H216V512H109.9V325.3h-186z'
      )
      s.path(
        fill: '#d72828',
        d: 'M-76 245.3h212.4V32h53.1v213.3H588v53.4H189.5V512h-53V298.7H-76z'
      )
    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/fo.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: 'fo-a') { s.path(fill_opacity: '.7', d: 'M0 0h512v512H0z') }
    end
    s.g(fill_rule: 'evenodd', stroke_width: '0', clip_path: 'url(#fo-a)') do
      s.path(fill: '#fff', d: 'M-78 0h708.2v512H-78z')
      s.path(
        fill: '#003897',
        d: 'M-75.9 199.1h198.3V0h113.3v199.1h396.6V313H235.7v199H122.4V312.9H-76z'
      )
      s.path(
        fill: '#d72828',
        d:
          'M-75.9 227.6h226.6V0h56.7v227.6h424.9v56.9h-425V512h-56.6V284.4H-75.9z'
      )
    end
  end
end