Sha256: cf96e956bd243f4ed85add61e761205e787a7049d504dd54176a240d65891209

Contents?: true

Size: 1.59 KB

Versions: 18

Compression:

Stored size: 1.59 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Bj < Base
        def square
          svg(
            **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
          ) do |s|
            s.defs do
              s.clipPath(id: 'bj-a') do
                s.path(fill: 'gray', d: 'M67.6-154h666v666h-666z')
              end
            end
            s.g(clip_path: 'url(#bj-a)', transform: 'translate(-52 118.4)scale(.7688)') do
              s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
                s.path(fill: '#319400', d: 'M0-154h333v666H0z')
                s.path(fill: '#ffd600', d: 'M333-154h666v333H333z')
                s.path(fill: '#de2110', d: 'M333 179h666v333H333z')
              end
            end
          end
        end

        def rectangle
          svg(
            **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
          ) do |s|
            s.defs do
              s.clipPath(id: 'bj-a') do
                s.path(fill: 'gray', d: 'M67.6-154h666v666h-666z')
              end
            end
            s.g(clip_path: 'url(#bj-a)', transform: 'matrix(.961 0 0 .7207 -65 111)') do
              s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
                s.path(fill: '#319400', d: 'M0-154h333v666H0z')
                s.path(fill: '#ffd600', d: 'M333-154h666v333H333z')
                s.path(fill: '#de2110', d: 'M333 179h666v333H333z')
              end
            end
          end
        end
      end
    end
  end
end
# rubocop:enable Metrics/MethodLength

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
phlex-icons-flag-1.8.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.8.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.7.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.7.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.6.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.6.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.5.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.5.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.4.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.4.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.3.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.3.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.2.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.2.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.1.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.1.0 lib/phlex/icons/flag/bj.rb
phlex-icons-flag-1.0.0 lib/phlex/icons/flag/bj.rb
phlex-icons-1.0.0 lib/phlex/icons/flag/bj.rb