samples/turtle/byzantium.rb in ray-0.1.0.pre1 vs samples/turtle/byzantium.rb in ray-0.1.0

- old
+ new

@@ -30,15 +30,20 @@ register do add_hook :quit, method(:exit!) end scene :byzantium do + img = Ray::Image.new window.size + img.turtle do + pen_up + center + byzantium(100, 5) + end + + @sprite = sprite img + render do |win| - win.fill(Ray::Color.black).turtle do - pen_up - center - byzantium(100, 4) - end + win.draw @sprite end end push_scene :byzantium end