Class: USPSFlags::Core::US

Inherits:
Object
  • Object
show all
Defined in:
lib/usps_flags/core/us.rb

Instance Method Summary collapse

Instance Method Details

#svgObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/usps_flags/core/us.rb', line 10

def svg
  @base_hoist = 2000.to_f
  @base_fly = @base_hoist * 1.91

  @canton_hoist = @base_hoist * 7 / 13
  @canton_fly = @canton_hoist * Math.sqrt(2)

  @star_offset = 20 # Half of scaled star height

  defs + stripes + stars
end