Sha256: ed27be778e8f5865bb3a9fc5b6144d9e38ce66b2656ebc330662ed91475575d8

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

Ray.init

width  = 255
height = 1

win = Ray.create_window(:width => width, :height => 255 * height)
win.fill Ray::Color.new(0, 0, 255)
win.flip

(0...256).each do |i|
  img = Ray::Image.new(:w => width, :h => height)
  img.fill Ray::Color.new(i, i, i)

  img.blit(:from => [0, 0], :to => win, :at => [0, i * height])
end

win.flip

sleep 3

Ray.stop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ray-0.0.0.pre1 ext/test.rb