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.6 lib/usps_flags/core/star.rb
usps_flags-0.3.5 lib/usps_flags/core/star.rb
usps_flags-0.3.4 lib/usps_flags/core/star.rb
usps_flags-0.3.3 lib/usps_flags/core/star.rb
usps_flags-0.3.2 lib/usps_flags/core/star.rb
usps_flags-0.3.1 lib/usps_flags/core/star.rb
usps_flags-0.3.0 lib/usps_flags/core/star.rb
usps_flags-0.2.6 lib/usps_flags/core/star.rb
usps_flags-0.2.5 lib/usps_flags/core/star.rb
usps_flags-0.2.4 lib/usps_flags/core/star.rb
usps_flags-0.2.3 lib/usps_flags/core/star.rb
usps_flags-0.2.2 lib/usps_flags/core/star.rb
usps_flags-0.2.1 lib/usps_flags/core/star.rb
usps_flags-0.2.0 lib/usps_flags/core/star.rb
usps_flags-0.1.26 lib/usps_flags/core/star.rb
usps_flags-0.1.25 lib/usps_flags/core/star.rb
usps_flags-0.1.24 lib/usps_flags/core/star.rb
usps_flags-0.1.23 lib/usps_flags/core/star.rb