1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

benchmark/app_aobench.rb: complete commented code to write the image to a file

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2019-01-21 12:31:29 +00:00
parent 32e259f097
commit f2d6338574

View file

@ -282,9 +282,11 @@ end
alias printf_orig printf
def printf *args
# $fp.printf(*args)
end
# File.open("ao.ppm", "w") do |fp|
# $fp = fp
printf("P6\n")
printf("%d %d\n", IMAGE_WIDTH, IMAGE_HEIGHT)
printf("255\n")