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:
parent
32e259f097
commit
f2d6338574
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue