# frozen_string_literal: true # rubocop:disable Metrics/MethodLength module Phlex module Icons module Flag class Sd < 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: 'sd-a') { s.path(fill_opacity: '.7', d: 'M0 0h496v496H0z') } end s.g( fill_rule: 'evenodd', stroke_width: '1pt', clip_path: 'url(#sd-a)', transform: 'scale(1.0321)' ) do s.path(fill: '#000001', d: 'M0 330.7h992.1v165.4H0z') s.path(fill: '#fff', d: 'M0 165.3h992.1v165.4H0z') s.path(fill: 'red', d: 'M0 0h992.9v165.4H0z') s.path(fill: '#009a00', d: 'M0 0v496l330.7-248z') 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: 'sd-a') do s.path(fill_opacity: '.7', d: 'M0 0h682.7v512H0z') end end s.g( fill_rule: 'evenodd', stroke_width: '1pt', clip_path: 'url(#sd-a)', transform: 'scale(.9375)' ) do s.path(fill: '#000001', d: 'M0 341.3h1024V512H0z') s.path(fill: '#fff', d: 'M0 170.6h1024v170.7H0z') s.path(fill: 'red', d: 'M0 0h1024.8v170.7H0z') s.path(fill: '#009a00', d: 'M0 0v512l341.3-256z') end end end end end end end # rubocop:enable Metrics/MethodLength