samples/window/get_pixel.rb in ray-0.1.1 vs samples/window/get_pixel.rb in ray-0.2.0
- old
+ new
@@ -12,10 +12,10 @@
puts "(50, 50) == #{window[50, 50]}"
puts "(50, 430) == #{window[50, 430]}"
end
on :key_press, key(:p) do
- window.to_image.write "screenshot.png"
+ window.to_image.write "screenshot.tga"
end
@obj = Ray::Polygon.circle([50, 50], 10, Ray::Color.blue)
render do