Skip to content

Commit 2ecf5d4

Browse files
committed
Added font
1 parent 03ba52c commit 2ecf5d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Random_font.ttf

20.3 KB
Binary file not shown.

eclipse_ruby2d.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def sph2cart(azimuth, elevation)
147147
@height = 746
148148
set width: @width, height: @height, title: "Eclipse"
149149

150-
@caption = Text.new(x: 5, y: 5, text: "Eclipse", size: 30, font: '/Users/mnielsen/Downloads/Random_font.ttf')
150+
@caption = Text.new(x: 5, y: 5, text: "Eclipse", size: 30, font: './Random_font.ttf')
151151
# @caption.color = 'fuchsia'
152152

153153
@moon_d = 49
@@ -159,8 +159,8 @@ def sph2cart(azimuth, elevation)
159159

160160
@horizon = Rectangle.new(x: 0, y: 0, width: @width, height: 1, z: 0, color: 'green')
161161

162-
# @coords = [40.768860, -111.893273] # Salt Lake City, Utah
163-
@coords = [43.833333, -110.700833] # grand teton NP, 11:36am
162+
@coords = [40.768860, -111.893273] # Salt Lake City, Utah
163+
# @coords = [43.833333, -110.700833] # grand teton NP, 11:36am
164164

165165
@current_time = Time.parse('2017-08-21 10:36:00') # grand teton NP totality, in MST/MDT time
166166
# @current_time = Time.parse('1978-04-07 06:28:00 -070') # Bonus: 1978 Eclipse, near-totality in grand teton NP

0 commit comments

Comments
 (0)