samples/fans.rb in reflexion-0.1.7 vs samples/fans.rb in reflexion-0.1.8
- old
+ new
@@ -29,11 +29,11 @@
p.text fps, x + xx, y + yy, @fps_font
end
end
=end
p.fill = 0
- p.text "#{fps} FPS", x, y, @fps_font ||= Rays::Font.new(nil, 20)
+ p.text "#{fps} FPS", x, y, @fps_font ||= Reflex::Font.new(nil, 20)
p.fill = fill
end
end# DisplayFPS
@@ -114,7 +114,8 @@
end
end# ShapesWindow
-ShapesWindow.new.show
-Reflex.start name: "Shapes"
+Reflex.start name: "Shapes" do
+ ShapesWindow.new.show
+end