# Core SVG data for the USPS Ensign.
#
# This class should never need to be called directly.
# @private
class USPSFlags::Core::Ensign
def svg
<<~SVG
#{stripes}
#{USPSFlags::Core::Anchor.new(color: :white).svg}
#{star_circle}
SVG
end
private
def stripes
<<~SVG
SVG
#
end
def star_circle
svg = ""
(0..13).each do |i|
rotation = i * (360.0 / 13)
svg << <<~SVG
#{USPSFlags::Core.star}
SVG
end
svg
end
end