Sha256: 24f77a25575d89b218ea275a882b2ffccf2c1c009eb322047c3da1fb257c40b0

Contents?: true

Size: 1.98 KB

Versions: 25

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
  module Icons
    module Flag
      class Tz < 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: 'tz-a') do
                s.path(fill_opacity: '.7', d: 'M102.9 0h496v496H103z')
              end
            end
            s.g(clip_path: 'url(#tz-a)', transform: 'translate(-106.2)scale(1.0321)') do
              s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
                s.path(fill: '#09f', d: 'M0 0h744.1v496H0z')
                s.path(fill: '#090', d: 'M0 0h744.1L0 496z')
                s.path(
                  fill: '#000001',
                  d: 'M0 496h165.4L744 103.4V0H578.7L0 392.7v103.4z'
                )
                s.path(
                  fill: '#ff0',
                  d: 'M0 378 567 0h56L0 415.3v-37.2zm121.1 118 623-415.3V118L177 496z'
                )
              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: 'tz-a') do
                s.path(fill_opacity: '.7', d: 'M10 0h160v120H10z')
              end
            end
            s.g(
              fill_rule: 'evenodd',
              stroke_width: '1pt',
              clip_path: 'url(#tz-a)',
              transform: 'matrix(4 0 0 4 -40 0)'
            ) do
              s.path(fill: '#09f', d: 'M0 0h180v120H0z')
              s.path(fill: '#090', d: 'M0 0h180L0 120z')
              s.path(fill: '#000001', d: 'M0 120h40l140-95V0h-40L0 95z')
              s.path(
                fill: '#ff0',
                d: 'M0 91.5 137.2 0h13.5L0 100.5zM29.3 120 180 19.5v9L42.8 120z'
              )
            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/tz.rb
phlex-icons-0.17.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.16.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.16.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.15.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.15.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.14.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.14.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.13.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.13.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.12.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.12.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.11.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.11.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.10.0 lib/phlex/icons/flag/tz.rb
phlex-icons-flag-0.9.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.9.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.8.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.7.0 lib/phlex/icons/flag/tz.rb
phlex-icons-0.6.0 lib/phlex/icons/flag/tz.rb