Sha256: 41fde4206ad27901ab83af34a8d6b9eaa53346c6bd6e14781817df06896f4f78

Contents?: true

Size: 569 Bytes

Versions: 38

Compression:

Stored size: 569 Bytes

Contents

# Core SVG data for stars.
#
# This class should never need to be called directly.
# @private
class USPSFlags::Core::Star
  def svg
    points = [
      [117.555,   81.805],
      [-41.47,  -137.085],
      [114.125,  -86.525],
      [-143.185,  -2.915],
      [-47.025, -135.28],
      [-47.025,  135.28],
      [-143.185,  2.915],
      [114.125,  86.525],
      [-41.47,  137.085],
      [117.555, -81.805]
    ]

    svg = "<path d=\"M 0 0\n"

    points.each do |x, y|
      svg << "l #{x} #{y}\n"
    end

    svg << "\" fill=\"#FFFFFF\" />\n"

    svg
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
usps_flags-0.3.26 lib/usps_flags/core/star.rb
usps_flags-0.3.25 lib/usps_flags/core/star.rb
usps_flags-0.3.24 lib/usps_flags/core/star.rb
usps_flags-0.3.23 lib/usps_flags/core/star.rb
usps_flags-0.3.22 lib/usps_flags/core/star.rb
usps_flags-0.3.21 lib/usps_flags/core/star.rb
usps_flags-0.3.20 lib/usps_flags/core/star.rb
usps_flags-0.3.19 lib/usps_flags/core/star.rb
usps_flags-0.3.18 lib/usps_flags/core/star.rb
usps_flags-0.3.17 lib/usps_flags/core/star.rb
usps_flags-0.3.16 lib/usps_flags/core/star.rb
usps_flags-0.3.15 lib/usps_flags/core/star.rb
usps_flags-0.3.14 lib/usps_flags/core/star.rb
usps_flags-0.3.13 lib/usps_flags/core/star.rb
usps_flags-0.3.12 lib/usps_flags/core/star.rb
usps_flags-0.3.11 lib/usps_flags/core/star.rb
usps_flags-0.3.10 lib/usps_flags/core/star.rb
usps_flags-0.3.9 lib/usps_flags/core/star.rb
usps_flags-0.3.8 lib/usps_flags/core/star.rb
usps_flags-0.3.7 lib/usps_flags/core/star.rb