Class: PhlexIcons::Flag::Mm
- Defined in:
- lib/phlex-icons/flag/mm.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PhlexIcons::Base
Instance Method Details
#rectangle ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/phlex-icons/flag/mm.rb', line 22 def rectangle svg( **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 640 480), 'xmlns:xlink': %(http://www.w3.org/1999/xlink) ) do |s| s.path(fill: %(#fecb00), d: %(M0 0h640v480H0z)) s.path(fill: %(#34b233), d: %(M0 160h640v320H0z)) s.path(fill: %(#ea2839), d: %(M0 320h640v160H0z)) s.g(transform: %(translate(320 256.9)scale(176.87999))) do s.path(id: %(mm-a), fill: %(#fff), d: %(m0-1 .3 1h-.6z)) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(-144))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(-72))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(72))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(144))) end end end |
#square ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/phlex-icons/flag/mm.rb', line 7 def square svg( **attrs, xmlns: %(http://www.w3.org/2000/svg), viewbox: %(0 0 512 512), 'xmlns:xlink': %(http://www.w3.org/1999/xlink) ) do |s| s.path(fill: %(#fecb00), d: %(M0 0h512v512H0z)) s.path(fill: %(#34b233), d: %(M0 170.7h512V512H0z)) s.path(fill: %(#ea2839), d: %(M0 341.3h512V512H0z)) s.path(id: %(mm-a), fill: %(#fff), stroke_width: %(188.7), d: %(M312.6 274H199.4L256 85.3Z)) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(-144 256 274))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(-72 256 274))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(72 256 274))) s.use('xlink:href': %(#mm-a), width: %(100%), height: %(100%), transform: %(rotate(144 256 274))) end end |