Class: PhlexIcons::Flag::Sn

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



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/phlex-icons/flag/sn.rb', line 23

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
      s.path(fill: '#0b7226', d: 'M0 0h213.3v480H0z')
      s.path(fill: '#ff0', d: 'M213.3 0h213.3v480H213.3z')
      s.path(fill: '#bc0000', d: 'M426.6 0H640v480H426.6z')
    end
    s.path(
      fill: '#0b7226',
      d:
        'M342 218.8h71.8l-56.6 43.6 20.7 69.3-56.6-43.6-56.6 41.6 20.7-67.3-56.6-43.6h69.8l22.7-71.3z'
    )
  end
end

#squareObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/phlex-icons/flag/sn.rb', line 6

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
      s.path(fill: '#0b7226', d: 'M0 0h170.7v512H0z')
      s.path(fill: '#ff0', d: 'M170.7 0h170.6v512H170.7z')
      s.path(fill: '#bc0000', d: 'M341.3 0H512v512H341.3z')
    end
    s.path(
      fill: '#0b7226',
      d:
        'm197 351.7 22-71.7-60.4-46.5h74.5l24.2-76 22.1 76H356L295.6 280l22.1 74-60.3-46.5z'
    )
  end
end