Sha256: b35c881d1be2f113afa5828de7c8343c913702500a086c8be3fd7862daee0d5a

Contents?: true

Size: 1.82 KB

Versions: 25

Compression:

Stored size: 1.82 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Ax < Base
        def square
          svg(
            class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
          ) do |s|
            s.defs do
              s.clipPath(id: 'ax-a') do
                s.path(fill_opacity: '.7', d: 'M166 0h850v850H166z')
              end
            end
            s.g(clip_path: 'url(#ax-a)', transform: 'translate(-100)scale(.6024)') do
              s.path(fill: '#0053a5', d: 'M0 0h1300v850H0z')
              s.g(fill: '#ffce00') do
                s.path(d: 'M400 0h250v850H400z')
                s.path(d: 'M0 300h1300v250H0z')
              end
              s.g(fill: '#d21034') do
                s.path(d: 'M475 0h100v850H475z')
                s.path(d: 'M0 375h1300v100H0z')
              end
            end
          end
        end

        def rectangle
          svg(
            class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
          ) do |s|
            s.defs do
              s.clipPath(id: 'ax-a') do
                s.path(fill_opacity: '.7', d: 'M106.3 0h1133.3v850H106.3z')
              end
            end
            s.g(
              clip_path: 'url(#ax-a)',
              transform: 'matrix(.56472 0 0 .56482 -60 -.1)'
            ) do
              s.path(fill: '#0053a5', d: 'M0 0h1300v850H0z')
              s.g(fill: '#ffce00') do
                s.path(d: 'M400 0h250v850H400z')
                s.path(d: 'M0 300h1300v250H0z')
              end
              s.g(fill: '#d21034') do
                s.path(d: 'M475 0h100v850H475z')
                s.path(d: 'M0 375h1300v100H0z')
              end
            end
          end
        end
      end
    end
  end
end
# rubocop:enable Metrics/MethodLength

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
phlex-icons-flag-0.17.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.17.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.16.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.16.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.15.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.15.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.14.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.14.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.13.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.13.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.12.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.12.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.11.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.11.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.10.0 lib/phlex/icons/flag/ax.rb
phlex-icons-flag-0.9.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.9.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.8.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.7.0 lib/phlex/icons/flag/ax.rb
phlex-icons-0.6.0 lib/phlex/icons/flag/ax.rb